123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:paddingTop="10dp"
- android:layout_height="match_parent">
- <TextView
- android:id="@+id/tv_filter"
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:drawableRight="@drawable/icon_arrow_down"
- android:drawablePadding="6dp"
- android:ellipsize="end"
- android:gravity="center"
- android:includeFontPadding="false"
- android:maxLength="6"
- android:maxLines="1"
- android:paddingStart="13dp"
- android:paddingEnd="8dp"
- android:text="筛选"
- android:textColor="@color/color_333333"
- android:textSize="@dimen/sp_14"
- app:layout_constraintBottom_toBottomOf="@+id/view_search_bg"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="@+id/view_search_bg" />
- <View
- android:id="@+id/view_search_bg"
- android:layout_width="0dp"
- android:layout_height="34dp"
- android:layout_marginEnd="14dp"
- android:background="@drawable/bg_white_18dp"
- app:layout_constraintLeft_toRightOf="@+id/tv_filter"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <ImageView
- android:id="@+id/iv_search_icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="12dp"
- android:src="@drawable/icon_search"
- app:layout_constraintBottom_toBottomOf="@+id/view_search_bg"
- app:layout_constraintLeft_toLeftOf="@+id/view_search_bg"
- app:layout_constraintTop_toTopOf="@+id/view_search_bg" />
- <com.cooleshow.base.widgets.ClearEditText
- android:id="@+id/et_target_name"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginEnd="5dp"
- android:background="@null"
- android:ellipsize="end"
- android:hint="@string/mine_course_search_tip"
- android:includeFontPadding="false"
- android:maxLines="1"
- android:paddingStart="8dp"
- android:textColorHint="@color/color_66000000"
- android:textColor="@color/color_333333"
- android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
- android:textSize="@dimen/sp_14"
- android:theme="@style/MyEditText"
- app:layout_constraintBottom_toBottomOf="@+id/view_search_bg"
- app:layout_constraintLeft_toRightOf="@+id/iv_search_icon"
- app:layout_constraintRight_toLeftOf="@+id/tv_search"
- app:layout_constraintTop_toTopOf="@+id/view_search_bg" />
- <TextView
- android:id="@+id/tv_search"
- android:layout_width="56dp"
- android:layout_height="28dp"
- android:layout_marginEnd="3dp"
- android:background="@drawable/shape_1ecdac_18dp"
- android:gravity="center"
- android:includeFontPadding="false"
- android:text="搜索"
- android:textColor="@color/white"
- android:textSize="@dimen/sp_14"
- app:layout_constraintBottom_toBottomOf="@+id/view_search_bg"
- app:layout_constraintRight_toRightOf="@+id/view_search_bg"
- app:layout_constraintTop_toTopOf="@+id/view_search_bg" />
- <View
- android:layout_marginTop="12dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/view_search_bg"
- android:id="@+id/view_top_line"
- android:layout_width="match_parent"
- android:layout_height="1px"/>
- <com.scwang.smart.refresh.layout.SmartRefreshLayout
- android:id="@+id/refreshLayout"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/view_top_line"
- app:srlEnableLoadMore="true">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recyclerView_list"
- android:layout_marginEnd="14dp"
- android:layout_marginStart="14dp"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:overScrollMode="never"
- android:scrollbars="none" />
- </com.scwang.smart.refresh.layout.SmartRefreshLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
|