|
@@ -1,17 +1,20 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<LinearLayout 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="wrap_content">
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/im_empty_logo"
|
|
|
- android:layout_width="@dimen/dp_260"
|
|
|
- android:layout_height="@dimen/dp_230"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="8dp"
|
|
|
android:background="@drawable/icon_empty_content"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_empty_hint"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
@@ -25,8 +28,9 @@
|
|
|
android:textSize="@dimen/sp_16"
|
|
|
android:textColor="@color/color_999999"
|
|
|
android:text="暂无内容~"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/im_empty_logo" />
|
|
|
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+</LinearLayout>
|