course_common_search_bar.xml 2.8 KB
Newer Older
严久程 committed
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:tools="http://schemas.android.com/tools"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
6
       tools:background="@color/platform_main_theme"
严久程 committed
7 8 9 10 11 12 13 14
       tools:parentTag="android.widget.LinearLayout">

    <LinearLayout
            android:layout_width="0dp"
            android:layout_height="30dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_weight="1"
严久程 committed
15
            android:background="@drawable/course_common_search_bar_back"
严久程 committed
16 17 18 19 20 21
            android:gravity="center"
            android:paddingLeft="15dp"
            android:paddingRight="15dp">

        <ImageView
                android:id="@+id/common_search_bar_img"
严久程 committed
22 23 24
                android:layout_width="12dp"
                android:layout_height="12dp"
                android:src="@drawable/course_ico_search"/>
严久程 committed
25 26 27 28 29 30 31

        <TextView
                android:id="@+id/common_search_bar_text"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:text="搜索课程标题或专家姓名"
严久程 committed
32
                android:textColor="@color/course_color_999999"
严久程 committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46
                android:textSize="12dp"/>

        <EditText
                android:id="@+id/common_search_bar_edit_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:background="@null"
                android:layout_weight="1"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:hint="搜索课程标题或专家姓名"
                android:imeOptions="actionSearch"
                android:singleLine="true"
严久程 committed
47 48
                android:textColor="@color/course_color_242424"
                android:textColorHint="@color/course_color_999999"
严久程 committed
49 50 51 52 53 54 55 56 57 58
                android:textSize="12dp"
                android:visibility="gone"
        />


        <ImageView
                android:id="@+id/iv_delete_icon"
                android:layout_width="14dp"
                android:layout_height="14dp"
                android:scaleType="centerCrop"
严久程 committed
59
                android:src="@drawable/course_delete"
严久程 committed
60 61 62 63 64 65 66 67 68 69
                android:visibility="gone"/>

    </LinearLayout>

    <TextView
            android:id="@+id/common_search_bar_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginRight="15dp"
            android:text="取消"
严久程 committed
70
            android:textColor="@color/course_color_242424"
严久程 committed
71 72 73
            android:visibility="gone"/>

</merge>