<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<TextView
|
android:id="@+id/tv_search"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="搜索"
|
android:textColor="@color/colorPrimary"
|
android:padding="10dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_search"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginEnd="4dp"
|
android:textSize="14sp"
|
android:textStyle="bold"/>
|
<EditText
|
android:id="@+id/et_search"
|
android:layout_width="0dp"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/tv_search"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toTopOf="parent"
|
android:textSize="14sp"
|
android:layout_marginTop="9dp"
|
android:hint="输入课程名称"
|
android:paddingVertical="10dp"
|
android:drawablePadding="6dp"
|
android:paddingHorizontal="4dp"
|
android:drawableStart="@mipmap/icon_search_gray"
|
android:background="@drawable/bg_grey_4dp"
|
android:layout_marginStart="14dp"/>
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_marginTop="9dp"
|
app:layout_constraintTop_toBottomOf="@id/et_search"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:id="@+id/refreshLayout">
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/rv_video"
|
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>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="4dp"
|
android:background="@drawable/bg_shadow_top"
|
app:layout_constraintTop_toBottomOf="@id/et_search"
|
android:layout_marginTop="8dp"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|