<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
<com.flyco.tablayout.CommonTabLayout
|
android:layout_width="match_parent"
|
android:layout_height="44dp"
|
android:id="@+id/tab_bar"
|
app:layout_constraintTop_toTopOf="parent"
|
app:tl_tab_space_equal="true"
|
app:tl_textSelectColor="@color/colorPrimary"
|
app:tl_textUnselectColor="@color/textColor66"
|
app:tl_textsize="14sp"
|
app:tl_textBold="BOTH"/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/tab_bar"/>
|
<EditText
|
android:id="@+id/et_search"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="14dp"
|
android:layout_marginTop="16dp"
|
android:background="@drawable/bg_grey_16dp"
|
android:drawableStart="@mipmap/icon_search_gray"
|
android:drawablePadding="6dp"
|
android:hint="输入关键字搜索"
|
android:padding="9dp"
|
android:singleLine="true"
|
android:textColor="@color/textColor"
|
android:textSize="12sp"
|
android:textStyle="bold"
|
app:layout_constraintTop_toBottomOf="@id/tab_bar" />
|
|
<TextView
|
android:id="@+id/tv_search"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="4dp"
|
android:background="@drawable/bg_green_14_alpha"
|
android:paddingHorizontal="16dp"
|
android:paddingVertical="5dp"
|
android:text="搜索"
|
android:textColor="@color/colorPrimary"
|
android:textSize="12sp"
|
android:textStyle="bold"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_search"
|
app:layout_constraintEnd_toEndOf="@id/et_search" />
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:id="@+id/refreshLayout"
|
app:layout_constraintTop_toBottomOf="@id/et_search"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:orientation="vertical">
|
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_course"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
app:layout_constraintTop_toBottomOf="@id/et_search" />
|
<com.scwang.smart.refresh.footer.ClassicsFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|