tests_activity_test_key_search.xml 4.35 KB
Newer Older
fengquan 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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/clContainer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    android:orientation="vertical"
    tools:context=".search.TestSearchActivity">

    <LinearLayout
        android:id="@+id/ll_title"
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:gravity="center_vertical"
        app:layout_constraintTop_toTopOf="parent">

        <com.ydl.ydlcommon.view.DeleteEditTextView
            android:id="@+id/etKeySearch"
            android:layout_width="0dp"
            android:layout_height="36dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="5dp"
            android:layout_weight="1"
            android:background="@drawable/tests_bg_test_search_input"
            android:drawableStart="@drawable/tests_search_gray"
            android:drawableLeft="@drawable/tests_search_gray"
            android:drawablePadding="8dp"
            android:ems="10"
            android:hint="输入标题与内容"
            android:imeOptions="actionSearch"
            android:inputType="text|textPersonName"
            android:lines="1"
            android:paddingLeft="8dp"
            android:paddingRight="8dp"
            android:textCursorDrawable="@color/platform_color_42C1FF"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/tvKeyBack"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginRight="6dp"
            android:padding="10dp"
            android:text="@string/platform_cancel"
            android:textColor="@color/platform_color_999999" />

    </LinearLayout>

    <TextView
        android:id="@+id/tv_search_key_empty"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
54
        android:visibility="gone"
fengquan committed
55 56 57 58 59 60 61
        android:padding="15dp" />


    <com.google.android.material.tabs.TabLayout
        android:id="@+id/tabLayout"
        android:layout_width="match_parent"
        android:layout_height="44dp"
62 63
        app:tabIndicator="@drawable/tests_bg_indicator_search"
        app:tabIndicatorColor="#2BB5F5"
fengquan committed
64
        app:tabIndicatorFullWidth="false"/>
fengquan committed
65

66 67 68 69
    <View
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:background="#F7F7F7" />
fengquan committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102


    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
        android:id="@+id/swipe_refresh_layout_key"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/rv_search_key_list"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <LinearLayout
                android:id="@+id/llKeyEmpty"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:visibility="gone"
                tools:visibility="visible">

                <ImageView
                    android:id="@+id/iv_Key_empty"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginTop="30dp"
                    android:src="@drawable/platform_ico_img_zixun_empty"
                    android:visibility="gone"
                    tools:visibility="visible" />
103 104 105 106 107 108 109 110

                <TextView
                    android:id="@+id/tv_text_search_empty"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="没有搜到相关信息,换个关键词看看吧"
                    android:visibility="gone"
                    android:gravity="center" />
fengquan committed
111 112 113 114 115
            </LinearLayout>

        </RelativeLayout>
    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</LinearLayout>