<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

    搜索

    •  

    最新隨筆

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 一本色道久久88亚洲综合| 在线观看午夜亚洲一区| 国产亚洲精品AAAA片APP| AV在线播放日韩亚洲欧| 精品成在人线AV无码免费看| 亚洲另类古典武侠| 亚洲福利精品一区二区三区| 97国产在线公开免费观看| 亚洲AV无码一区二区大桥未久| 久久国产亚洲精品麻豆| 成年性午夜免费视频网站不卡| 九九热久久免费视频| 国产亚洲sss在线播放| 中文字幕精品亚洲无线码一区| 国产精品视频免费| 成人毛片100免费观看| 亚洲另类自拍丝袜第五页| 中文字幕精品无码亚洲字| 一本无码人妻在中文字幕免费| 9久热这里只有精品免费| 一本色道久久88亚洲精品综合| 亚洲色WWW成人永久网址| 日韩免费视频在线观看| 99精品视频在线观看免费专区 | 亚洲A∨精品一区二区三区下载 | 亚洲色大情网站www| 国产AV无码专区亚洲AV男同| 黄网址在线永久免费观看| 亚洲电影免费观看| 国产中文字幕在线免费观看| 999任你躁在线精品免费不卡| 羞羞视频在线免费观看| 亚洲国产美女福利直播秀一区二区 | 国产精品亚洲专区无码唯爱网| 久久久久久久亚洲Av无码| 久久久久国产亚洲AV麻豆| 国产成人精品123区免费视频| 1000部国产成人免费视频| 免费在线看黄的网站| 国产精品免费视频观看拍拍| 亚洲av永久无码精品秋霞电影秋 |