|
@@ -1,32 +1,44 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<layout>
|
|
|
+<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:layout_height="65dp"
|
|
|
+ android:id="@+id/root"
|
|
|
+ android:paddingHorizontal="15dp">
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- tools:context=".ui.MainActivity">
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/icon"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:text="title"
|
|
|
+ android:textColor="#666666"
|
|
|
+ android:scaleType="center"
|
|
|
+ android:textSize="21sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- android:id="@+id/baseRefreshLayout"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:tag="layout/activity_base_list_0">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:text="title"
|
|
|
+ android:textColor="#666666"
|
|
|
+ android:textSize="21sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/icon"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <com.xuqm.base.view.EmptyView
|
|
|
- android:id="@+id/baseEmptyView"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/des"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="des"
|
|
|
+ android:textColor="#999999"
|
|
|
+ android:textSize="15sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
- android:id="@+id/baseRecyclerView"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:overScrollMode="never" />
|
|
|
-
|
|
|
- </com.xuqm.base.view.EmptyView>
|
|
|
-
|
|
|
- </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
-
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
-</layout>
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|