<?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:orientation="vertical"
|
android:background="@color/page_bg"
|
android:layout_height="match_parent">
|
<ImageView
|
android:id="@+id/bg"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintDimensionRatio="39:35"
|
android:src="@mipmap/bg_shop"
|
android:scaleType="fitXY"/>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="42dp"
|
android:id="@+id/et_search"
|
app:layout_constraintTop_toTopOf="@id/bg"
|
app:layout_constraintVertical_bias="0.6"
|
app:layout_constraintBottom_toBottomOf="@id/bg"
|
android:layout_marginHorizontal="34dp"
|
android:background="@drawable/bg_white_20dp"
|
android:hint="搜索你附近的疗愈馆"
|
android:textSize="12sp"
|
android:drawablePadding="10dp"
|
android:singleLine="true"
|
android:gravity="center_vertical"
|
android:textColor="@color/textColor"
|
android:imeActionLabel="搜索"
|
android:textColorHint="#DEDEDE"
|
android:paddingHorizontal="25dp"
|
android:drawableStart="@mipmap/ic_search_black"/>
|
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:id="@+id/refreshLayout"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintTop_toBottomOf="@id/et_search"
|
android:layout_marginTop="32dp"
|
app:layout_constraintBottom_toBottomOf="parent">
|
<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_list"
|
android:layout_marginHorizontal="18dp" />
|
<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>
|