<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 93,  comments - 2,  trackbacks - 0
    abc
    <LinearLayout
               android:id="@+id/estate_linear"
               android:layout_width="fill_parent"
               android:layout_height="35dp"
               android:layout_weight="1"
               android:background="@drawable/border_rounded_gray_white"
               android:layout_gravity="center_vertical"
               android:gravity="center_vertical"
               android:layout_margin="5dp"
               android:orientation="horizontal" >
    <ImageButton
               android:id="@+id/object_btn_search"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:layout_marginLeft="8dp"
               android:layout_gravity="center_vertical|right"
               android:background="@drawable/btn_search"
               android:contentDescription="@null"
               android:scaleType="fitXY" />
    <RelativeLayout
                android:layout_width="1dp"
                android:layout_height="33dp"
                android:layout_marginLeft="8dp"
                android:background="@color/color_line" />
                <EditText
                     android:id="@+id/object_et_content"
                     style="@style/StringSearchText"
                     android:layout_gravity="left|center_vertical"
                     android:layout_marginLeft="2dp"
                     android:layout_marginRight="8dp"
                     android:layout_weight="1"
                     android:background="@null"
                     android:hint="@string/tip_search_hint"
                     android:imeOptions="actionSend"
                     android:singleLine="true"
                     android:textCursorDrawable="@null"
                     android:textColorHint="#626463" />
                <ImageButton
                     android:id="@+id/object_btn_del"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_gravity="right|center_vertical"
                     android:layout_marginRight="10dp"
                     android:background="@drawable/ic_clear" />
             </LinearLayout>


    border_rounded_gray_white.xml
    <?xml version="1.0" encoding="utf-8"?>
    <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
        <!-- 連框顏色值 -->
        <item>
            <shape>
                <solid android:color="@color/bg_gray" />
                <corners
                    android:bottomLeftRadius="3dp"
                    android:bottomRightRadius="3dp"
                    android:topLeftRadius="3dp"
                    android:topRightRadius="3dp" />
            </shape>
        </item>
        <!-- 主體背景顏色值 -->
        <item
            android:bottom="1dp"
            android:left="1dp"
            android:right="1dp"
            android:top="1dp">
            <shape>
                <solid android:color="@color/white" />
                <corners
                    android:bottomLeftRadius="3dp"
                    android:bottomRightRadius="3dp"
                    android:topLeftRadius="3dp"
                    android:topRightRadius="3dp" />
            </shape>
        </item>
    </layer-list>

    <style name="StringSearchText">
            <item name="android:textSize">14dp</item>
            <item name="android:layout_width">wrap_content</item>
            <item name="android:layout_height">wrap_content</item>
            <item name="android:textColor">@android:color/black</item>
        </style>

    btn_search.xml
    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
        <!-- 沒有焦點(diǎn)時的背景圖片 -->
        <item android:drawable="@drawable/ic_search_normal" android:state_window_focused="false"/>
        <!-- 非觸摸模式下獲得焦點(diǎn)并單擊時的背景圖片 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_focused="true" android:state_pressed="true"/>
        <!-- 觸摸模式下單擊時的背景圖片 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_focused="false" android:state_pressed="true"/>
        <!-- 選中時的圖片背景 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_selected="true"/>
        <!-- 獲得焦點(diǎn)時的圖片背景 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_focused="true"/>
        <!-- 默認(rèn)圖片背景 -->
        <item android:drawable="@drawable/ic_search_normal"/>
    </selector>

    <color name="color_line">#bebebe</color>



    private TextWatcher textWatcher = new TextWatcher() {
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count,
    int after) {
    }
    @Override
    public void onTextChanged(CharSequence s, int start, int before,
    int count) {
    }
    @Override
    public void afterTextChanged(Editable s) {
    mKeywords = tv_keyword.getText().toString();
    AgUtils.log(TAG+"mKeywords:"+mKeywords, 4);
    if (TextUtils.isEmpty(mKeywords)) {
    object_btn_del.setVisibility(View.GONE);
    } else {
    object_btn_del.setVisibility(View.VISIBLE);
    searchIndexListInfo();
    }
    }
    };

    tv_keyword.addTextChangedListener(textWatcher);
    posted on 2015-07-08 23:55 Terry Zou 閱讀(137) 評論(0)  編輯  收藏 所屬分類: Android
    <2015年7月>
    2829301234
    567891011
    12131415161718
    19202122232425
    2627282930311
    2345678

    常用鏈接

    留言簿(2)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    相冊

    收藏夾

    Java

    搜索

    •  

    最新隨筆

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 日韩免费无码一区二区三区| fc2免费人成在线| 6080午夜一级毛片免费看6080夜福利| 亚洲第一黄片大全| a在线视频免费观看在线视频三区| 亚洲国产精品毛片av不卡在线| 美女被免费视频网站| 亚洲 自拍 另类小说综合图区| 最近免费中文字幕大全免费版视频| 亚洲国产精品无码一线岛国| 国产真人无码作爱视频免费| 久久精品a亚洲国产v高清不卡 | 久久国产亚洲高清观看| 真实国产乱子伦精品免费| 亚洲福利一区二区| 久久精品a一国产成人免费网站 | 亚洲成熟丰满熟妇高潮XXXXX| 国产高清免费观看| 2022国内精品免费福利视频| 亚洲精品无码精品mV在线观看| 久久午夜夜伦鲁鲁片免费无码 | 亚洲最大在线观看| 日韩人妻无码免费视频一区二区三区 | JLZZJLZZ亚洲乱熟无码| 叮咚影视在线观看免费完整版| 久久av无码专区亚洲av桃花岛| 永久免费AV无码网站在线观看 | 国产男女爽爽爽免费视频 | 国产色爽免费视频| 国产视频精品免费视频| 精品无码一区二区三区亚洲桃色 | 亚洲免费在线观看| 一区二区三区四区免费视频| 久久亚洲国产成人影院| 国产亚洲av人片在线观看| 99视频精品全部免费观看| 亚洲AV一区二区三区四区| 亚洲免费观看视频| 岛国大片免费在线观看| baoyu122.永久免费视频| 亚洲日本人成中文字幕|