调试通过获取设备信息实时更新二级页面重量,首页和二级页面列表页增加空数据展示

This commit is contained in:
2025-08-11 14:22:34 +08:00
parent 9e5ede4a8e
commit 0d99c4f22a
11 changed files with 312 additions and 142 deletions
@@ -159,6 +159,7 @@
<com.scwang.smart.refresh.layout.SmartRefreshLayout
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_marginTop="24dp"
android:layout_height="0dp"
android:layout_weight="1">
@@ -172,7 +173,6 @@
android:layout_height="match_parent"
android:paddingStart="36dp"
android:paddingBottom="12dp"
android:layout_marginTop="24dp"
android:paddingTop="12dp"
android:paddingEnd="36dp"
android:clipToPadding="false"
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:gravity="center"
android:layout_gravity="center"
android:orientation="vertical"
tools:ignore="MissingDefaultResource,UseCompoundDrawables">
<ImageView
android:id="@+id/ivEmptyIcon"
android:layout_width="270dp"
android:layout_height="wrap_content"
android:src="@drawable/ic_empty_gray"
android:adjustViewBounds="true"
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/tvEmptyContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black999"
android:layout_marginTop="60dp"
android:textSize="60sp"
android:text="暂无数据"
tools:ignore="HardcodedText" />
</LinearLayout>