consultant_activity_hot_search.xml 10.6 KB
Newer Older
严久程 committed
1
<?xml version="1.0" encoding="utf-8"?>
upwork.021 committed
2
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
严久程 committed
3 4 5 6 7 8
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/platform_white">

upwork.021 committed
9 10
    <RelativeLayout
        android:id="@+id/rl_search"
严久程 committed
11
        android:layout_width="match_parent"
upwork.021 committed
12 13 14 15 16 17
        android:layout_height="@dimen/consultant_title_bar_height"

        android:paddingStart="15dp"
        android:tag="tag_search_input"
        app:layout_constraintTop_toTopOf="parent"
        >
严久程 committed
18

upwork.021 committed
19 20
        <View
            android:id="@+id/view_search_input_bg"
严久程 committed
21
            android:layout_width="match_parent"
upwork.021 committed
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
            android:layout_height="32dp"
            android:layout_centerVertical="true"
            android:layout_marginRight="60dp"
            android:background="@drawable/consultant_bg_hot_search_input"
            android:tag="tag_search_input_bg" />

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

        <EditText
            android:id="@+id/etSearch"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginRight="20dp"
            android:layout_toLeftOf="@+id/iv_delete_icon"
            android:layout_toRightOf="@id/iv_search_icon"
            android:background="@null"
            android:cursorVisible="true"
严久程 committed
49 50
            android:focusable="true"
            android:focusableInTouchMode="true"
upwork.021 committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 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
            android:hint="搜索心理问题或专家姓名"
            android:imeOptions="actionSearch"
            android:maxLength="100"
            android:singleLine="true"
            android:tag="tag_search_input_edit"
            android:textColor="#242424"
            android:textColorHint="#b3b3b3"
            android:textCursorDrawable="@drawable/consultant_edit_cursor_drawable"
            android:textSize="13sp" />

        <ImageView
            android:id="@+id/iv_delete_icon"
            android:layout_width="14dp"
            android:layout_height="14dp"
            android:layout_alignRight="@+id/view_search_input_bg"
            android:layout_centerVertical="true"
            android:layout_marginRight="12dp"
            android:scaleType="centerCrop"
            android:src="@drawable/platform_delete"
            android:visibility="invisible" />

        <TextView
            android:id="@+id/tv_search_cancle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="10dp"
            android:padding="5dp"
            android:text="取消"
            android:textColor="#242424"
            android:textSize="15dp" />
    </RelativeLayout>

    <View
        android:id="@+id/v_topLine"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_below="@+id/rl_search"
        android:layout_marginTop="@dimen/platform_dp_6"
        android:background="@color/platform_color_E0E0E0"
        app:layout_constraintTop_toBottomOf="@id/rl_search" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        app:layout_constraintTop_toBottomOf="@id/v_topLine"
        >
严久程 committed
100

upwork.021 committed
101 102 103 104 105 106 107 108 109
        <LinearLayout
            android:id="@+id/clContainer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">


            <com.ydl.ydlcommon.view.widgets.RoundImageView
                android:id="@+id/iv_daoyi_image"
严久程 committed
110
                android:layout_width="match_parent"
upwork.021 committed
111
                android:layout_height="90dp"
严久程 committed
112
                android:layout_marginLeft="15dp"
upwork.021 committed
113
                android:layout_marginRight="15dp"
严久程 committed
114
                android:scaleType="centerCrop"
upwork.021 committed
115 116 117 118
                android:visibility="gone"
                app:pa_borderRadius="8dp"
                app:pa_type="pa_round"
                tools:visibility="visible" />
严久程 committed
119

upwork.021 committed
120 121 122

            <LinearLayout
                android:id="@+id/ll_search_history"
严久程 committed
123 124
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
upwork.021 committed
125 126 127
                android:layout_below="@+id/v_topLine"
                android:layout_marginTop="13dp"
                android:clickable="true"
严久程 committed
128
                android:focusable="true"
upwork.021 committed
129 130 131
                android:orientation="vertical"
                android:paddingLeft="15dp"
                android:paddingRight="15dp">
严久程 committed
132

upwork.021 committed
133 134 135 136 137
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">
严久程 committed
138

upwork.021 committed
139 140 141 142 143 144 145 146
                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:text="历史搜索"
                        android:textColor="#242424"
                        android:textSize="@dimen/platform_dp_16"
                        android:textStyle="bold" />
严久程 committed
147

upwork.021 committed
148 149 150 151 152 153
                    <ImageView
                        android:id="@+id/iv_delete_history"
                        android:layout_width="28dp"
                        android:layout_height="28dp"
                        android:padding="5dp"
                        android:src="@drawable/consultant_hot_search_delete_icon" />
严久程 committed
154

upwork.021 committed
155
                </LinearLayout>
严久程 committed
156

upwork.021 committed
157 158 159 160 161
                <cn.lankton.flowlayout.FlowLayout
                    android:id="@+id/fl_search_history"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="12dp" />
严久程 committed
162

upwork.021 committed
163
            </LinearLayout>
严久程 committed
164 165

            <LinearLayout
upwork.021 committed
166
                android:id="@+id/llHotSearch"
严久程 committed
167 168
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
upwork.021 committed
169 170 171 172 173 174 175 176 177
                android:layout_below="@id/ll_search_history"
                android:layout_marginTop="13dp"
                android:clickable="true"
                android:focusable="true"
                android:orientation="vertical"
                android:paddingLeft="15dp"
                android:paddingRight="15dp"
                android:visibility="gone"
                tools:visibility="visible">
严久程 committed
178 179

                <TextView
upwork.021 committed
180
                    android:layout_width="wrap_content"
严久程 committed
181
                    android:layout_height="wrap_content"
upwork.021 committed
182
                    android:text="热门搜索"
严久程 committed
183 184 185 186
                    android:textColor="#242424"
                    android:textSize="@dimen/platform_dp_16"
                    android:textStyle="bold" />

upwork.021 committed
187 188 189 190 191
                <cn.lankton.flowlayout.FlowLayout
                    android:id="@+id/flHotSearch"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="12dp" />
严久程 committed
192 193
            </LinearLayout>

upwork.021 committed
194 195
            <LinearLayout
                android:id="@+id/llHotExpert"
严久程 committed
196
                android:layout_width="match_parent"
upwork.021 committed
197 198 199 200 201 202 203 204 205 206
                android:layout_height="wrap_content"
                android:layout_below="@id/llHotSearch"
                android:layout_marginTop="13dp"
                android:clickable="true"
                android:focusable="true"
                android:orientation="vertical"
                android:paddingLeft="15dp"
                android:paddingRight="15dp"
                android:visibility="gone"
                tools:visibility="visible">
严久程 committed
207

upwork.021 committed
208 209 210 211 212 213 214
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="本周热门专家"
                    android:textColor="#242424"
                    android:textSize="@dimen/platform_dp_16"
                    android:textStyle="bold" />
严久程 committed
215

upwork.021 committed
216 217 218 219 220 221
                <cn.lankton.flowlayout.FlowLayout
                    android:id="@+id/flHotExpert"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="12dp" />
            </LinearLayout>
严久程 committed
222

upwork.021 committed
223 224
            <androidx.cardview.widget.CardView
                android:id="@+id/card_view"
严久程 committed
225
                android:layout_width="match_parent"
upwork.021 committed
226 227 228 229 230 231 232 233
                android:layout_height="80dp"
                android:layout_below="@+id/llHotExpert"
                android:layout_marginLeft="@dimen/platform_dp_15"
                android:layout_marginTop="@dimen/platform_dp_28"
                android:layout_marginRight="@dimen/platform_dp_15"
                android:layout_marginBottom="@dimen/platform_dp_28"
                app:cardCornerRadius="@dimen/platform_dp_4"
                app:cardElevation="0px">
严久程 committed
234

upwork.021 committed
235 236 237 238 239 240 241 242 243 244 245 246 247
                <com.ydl.ydlcommon.view.banner.Banner
                    android:id="@+id/banner"
                    android:layout_width="match_parent"
                    android:layout_height="80dp"
                    android:scaleType="centerCrop"
                    android:tag="overScroll"
                    app:pa_indicator_different_width="14dp"
                    app:pa_indicator_drawable_selected="@drawable/consultant_banner_indicator_select"
                    app:pa_indicator_drawable_unselected="@drawable/consultant_banner_indicator_unselect"
                    app:pa_indicator_height="5dp"
                    app:pa_indicator_margin="1.25dp"
                    app:pa_is_selected_same_unselected="false" />
            </androidx.cardview.widget.CardView>
严久程 committed
248 249

        </LinearLayout>
upwork.021 committed
250 251 252 253 254 255 256 257 258 259 260 261 262 263
    </ScrollView>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/rv_search_words"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintTop_toBottomOf="@id/v_topLine"
        app:layout_constraintBottom_toBottomOf="parent"
        android:background="@color/white"
        android:layout_marginTop="8dp"
        android:visibility="gone"
        />
</androidx.constraintlayout.widget.ConstraintLayout>

严久程 committed
264 265