home_layout_home_module_input.xml 2.54 KB
Newer Older
konghaorui committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/ll_search"
    android:layout_width="match_parent"
    android:layout_height="35dp"
    android:layout_marginLeft="35dp"
    android:layout_marginRight="35dp"
    android:tag="tag_search_input"
    app:layout_anchor="@+id/middle_but_layout"
    app:layout_anchorGravity="top"
    android:focusable="true"
    android:orientation="horizontal"
    android:focusableInTouchMode="true"
    >

    <ImageView
        android:id="@+id/img_ad"
        android:layout_width="64dp"
        android:layout_height="34dp"
        android:layout_marginEnd="10dp"
        android:visibility="gone" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <View
            android:id="@+id/view_search_input_bg"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/home_bg_home_module_input"
            android:tag="tag_search_input_bg"
            />

        <ImageView
            android:id="@+id/iv_search_icon"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="10dp"
            android:layout_width="14dp"
            android:layout_height="14dp"
            android:scaleType="centerCrop"
            android:layout_centerVertical="true"
            android:tag="tag_search_input_img"
            android:src="@drawable/home_search"/>

        <EditText
            android:editable="false"
            android:id="@+id/etSearch"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginRight="@dimen/platform_dp_10"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@id/iv_search_icon"
            android:background="@null"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:hint="搜索专家姓名"
            android:imeOptions="actionSearch"
            android:singleLine="true"
            android:textColor="@color/platform_color_444444"
            android:textColorHint="#999999"
            android:textCursorDrawable="@color/home_color_0CACF4"
            android:tag="tag_search_input_edit"
            android:textSize="12sp"
            />
    </RelativeLayout>


</LinearLayout>