148 lines
6.6 KiB
XML
148 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:context=".activity.GoodsActivity">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="listener"
|
|
type="com.uiuios.aios.activity.GoodsActivity.Listener" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_36"
|
|
android:background="@color/action_bar_red"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_back"
|
|
android:layout_width="@dimen/dp_16"
|
|
android:layout_height="@dimen/dp_16"
|
|
android:layout_marginStart="8dp"
|
|
android:adjustViewBounds="true"
|
|
android:onClick="@{listener.back}"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/back_white"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout23"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:background="@drawable/search_bg"
|
|
android:paddingStart="@dimen/dp_8"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/tv_order"
|
|
app:layout_constraintStart_toEndOf="@+id/iv_back"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView9"
|
|
android:layout_width="@dimen/dp_16"
|
|
android:layout_height="@dimen/dp_16"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/red_search_icon"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<EditText
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:background="@null"
|
|
android:paddingStart="@dimen/dp_8"
|
|
android:hint="搜索"
|
|
android:textColor="@color/black"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/imageView9"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_order"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:maxLines="1"
|
|
android:text="订单"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_11"
|
|
app:layout_constraintBottom_toBottomOf="@+id/constraintLayout23"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/constraintLayout23" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/tabLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout"
|
|
app:tabIndicatorColor="@color/action_bar_red"
|
|
app:tabIndicatorFullWidth="false"
|
|
app:tabSelectedTextColor="@color/action_bar_red"
|
|
app:tabTextAppearance="@style/TabLayoutTextStyle"
|
|
app:tabTextColor="@color/black" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/cl_nodata"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tabLayout">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv1"
|
|
android:layout_width="@dimen/dp_100"
|
|
android:layout_height="@dimen/dp_100"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_list_nodata"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:maxLines="1"
|
|
android:text="没有数据"
|
|
android:textSize="@dimen/sp_12"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/iv1" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tabLayout" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |