<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)時(shí)的背景圖片 -->
        <item android:drawable="@drawable/ic_search_normal" android:state_window_focused="false"/>
        <!-- 非觸摸模式下獲得焦點(diǎn)并單擊時(shí)的背景圖片 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_focused="true" android:state_pressed="true"/>
        <!-- 觸摸模式下單擊時(shí)的背景圖片 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_focused="false" android:state_pressed="true"/>
        <!-- 選中時(shí)的圖片背景 -->
        <item android:drawable="@drawable/ic_search_pressed" android:state_selected="true"/>
        <!-- 獲得焦點(diǎn)時(shí)的圖片背景 -->
        <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 閱讀(145) 評論(0)  編輯  收藏 所屬分類: Android
    <2015年7月>
    2829301234
    567891011
    12131415161718
    19202122232425
    2627282930311
    2345678

    常用鏈接

    留言簿(2)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    相冊

    收藏夾

    Java

    搜索

    •  

    最新隨筆

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 久久精品国产亚洲av麻豆小说| 亚洲成人影院在线观看| 亚洲精品无码永久中文字幕| 黄色一级视频免费观看| 亚洲v国产v天堂a无码久久| 粉色视频成年免费人15次 | 麻豆国产精品入口免费观看| www.亚洲成在线| 夫妻免费无码V看片| 亚洲精品国产suv一区88| 国产免费观看网站| 黄色片网站在线免费观看| 免费中文字幕一级毛片| 国产精品福利片免费看| 在线亚洲午夜理论AV大片| 国产成人AV免费观看| 亚洲精品高清国产一久久| 猫咪免费人成网站在线观看| 亚洲国产美女精品久久| 成人午夜性A级毛片免费| 男女作爱免费网站| 久久精品国产亚洲麻豆| 4hu四虎最新免费地址| 亚洲男人的天堂网站| 亚洲国产综合精品一区在线播放| 精品一区二区三区免费视频| 亚洲AV永久无码区成人网站| 18级成人毛片免费观看| 亚洲人成电影网站免费| 精品国产香蕉伊思人在线在线亚洲一区二区| 国产精品福利片免费看| 亚洲免费一级视频| 亚洲成a人片在线观看日本麻豆| 青柠影视在线观看免费高清 | 亚洲精品无码高潮喷水A片软| 四虎永久在线精品免费影视 | 亚洲国产精品久久久天堂| 国产人在线成免费视频| 四虎精品免费永久免费视频| 国产v亚洲v天堂无码网站| 影音先锋在线免费观看|