StatusLayout 增加ID

This commit is contained in:
huangjian
2023-03-20 16:01:25 +08:00
parent 5b7ef4c86d
commit 5b987ecccc
51 changed files with 95 additions and 52 deletions

View File

@@ -100,6 +100,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -94,6 +94,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -60,6 +60,7 @@
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_F5F5F5">

View File

@@ -14,6 +14,7 @@
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -14,8 +14,10 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/swipe_refresh"
android:layout_width="match_parent"

View File

@@ -14,6 +14,7 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">

View File

@@ -13,6 +13,7 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -90,6 +90,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -81,6 +81,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -84,6 +84,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -13,6 +13,7 @@
android:layout_marginTop="@dimen/dp_30" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -16,6 +16,7 @@
android:layout_height="8dp" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -13,6 +13,7 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -12,6 +12,7 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -12,6 +12,7 @@
android:layout_marginTop="@dimen/dp_30" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -13,6 +13,7 @@
android:layout_marginTop="@dimen/dp_30" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>

View File

@@ -12,6 +12,7 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -102,6 +102,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"

View File

@@ -100,6 +100,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -95,6 +95,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -22,6 +22,7 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -95,6 +95,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -2,10 +2,12 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:background="@color/color_F5F5F5"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/color_F5F5F5">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh"
@@ -16,8 +18,7 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/user_live_recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
android:layout_height="wrap_content" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</com.nnbc123.app.common.widget.StatusLayout>

View File

@@ -5,7 +5,8 @@
android:orientation="vertical">
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<com.nnbc123.app.common.widget.StatusLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
android:layout_height="match_parent">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh"

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/rly_date_out"
android:layout_alignParentTop="true"
android:layout_width="match_parent"
android:layout_height="58dp"
android:layout_alignParentTop="true"
android:background="@color/white">
<TextView
@@ -43,6 +43,7 @@
</RelativeLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/rly_date_out">

View File

@@ -1,5 +1,6 @@
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -7,6 +7,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -9,6 +9,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -1,20 +1,19 @@
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:paddingTop="2dp"
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
android:paddingTop="2dp" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@@ -1,5 +1,6 @@
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -10,6 +10,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -37,13 +38,15 @@
android:id="@+id/ll_empty_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon_prize_box_empty"/>
android:src="@drawable/icon_prize_box_empty" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@@ -9,6 +9,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
@@ -12,9 +13,9 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:clipToPadding="false"
android:layout_height="match_parent"
android:background="@color/white" />
android:background="@color/white"
android:clipToPadding="false" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</com.nnbc123.app.common.widget.StatusLayout>

View File

@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.recyclerview.widget.RecyclerView>
android:layout_height="match_parent"></androidx.recyclerview.widget.RecyclerView>
</com.nnbc123.app.common.widget.StatusLayout>

View File

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -15,9 +15,9 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_task_list"
android:overScrollMode="never"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:overScrollMode="never" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</com.nnbc123.app.common.widget.StatusLayout>

View File

@@ -9,6 +9,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -6,6 +6,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -7,6 +7,7 @@
</data>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -134,7 +134,7 @@
android:gravity="center"
android:paddingStart="@dimen/dp_10"
android:paddingEnd="@dimen/dp_10"
android:textColor="@color/white"
android:textColor="@color/text_normal_282828"
android:textSize="@dimen/sp_12"
tools:text="话题名称" />

View File

@@ -2,8 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/bg_normal_1c1b22">
android:background="@color/bg_normal_1c1b22"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_search"
@@ -15,16 +15,16 @@
android:id="@+id/iv_back"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/arrow_left"
android:paddingStart="15dp"
android:paddingEnd="8dp"/>
android:paddingEnd="8dp"
android:src="@drawable/arrow_left" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginStart="@dimen/dp_10"
android:layout_marginEnd="55dp"
android:layout_toEndOf="@id/iv_back"
android:layout_marginStart="@dimen/dp_10"
android:background="@drawable/bg_secondary_radius_15">
<ImageView
@@ -36,15 +36,15 @@
<EditText
android:id="@+id/et_search"
android:hint="搜索用户昵称/ID"
android:textSize="@dimen/sp_13"
android:textColor="@color/text_normal_282828"
android:textColorHint="@color/text_hint_555574"
android:layout_marginStart="29dp"
android:layout_marginEnd="29dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null" />
android:layout_marginStart="29dp"
android:layout_marginEnd="29dp"
android:background="@null"
android:hint="搜索用户昵称/ID"
android:textColor="@color/text_normal_282828"
android:textColorHint="@color/text_hint_555574"
android:textSize="@dimen/sp_13" />
</RelativeLayout>
@@ -52,20 +52,20 @@
android:id="@+id/tv_search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/text_title_282828"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="15dp"
android:textSize="16dp"
android:text="@string/search" />
android:text="@string/search"
android:textColor="@color/text_title_282828"
android:textSize="16dp" />
</RelativeLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:layout_marginTop="8dp"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:layout_marginTop="8dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"

View File

@@ -15,6 +15,7 @@
android:layout_marginTop="@dimen/dp_30" />
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/dp_10">

View File

@@ -14,9 +14,10 @@
android:layout_height="wrap_content" />
<com.nnbc123.app.common.widget.StatusLayout
android:background="@color/white"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/white">
<com.nnbc123.app.ui.widget.magicindicator.MagicIndicator
android:id="@+id/magic_indicator"
@@ -25,9 +26,9 @@
android:background="@color/white" />
<androidx.viewpager.widget.ViewPager
android:layout_below="@+id/magic_indicator"
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:layout_below="@+id/magic_indicator" />
</com.nnbc123.app.common.widget.StatusLayout>
</LinearLayout>

View File

@@ -74,6 +74,7 @@
android:layout_height="match_parent">
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -81,6 +81,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -72,10 +72,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:drawableStart="@mipmap/ic_camera"
android:drawablePadding="@dimen/dp_9"
android:text="@string/join_topic"
android:textColor="@color/white"
android:textColor="@color/text_normal_282828"
android:textSize="@dimen/sp_15"
tools:ignore="ContentDescription" />

View File

@@ -1,5 +1,6 @@
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.nnbc123.app.miniworld.fragment.MiniWorldCategoryFragment">

View File

@@ -87,6 +87,7 @@
</LinearLayout>
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<com.nnbc123.app.common.widget.StatusLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@@ -4,6 +4,7 @@
android:layout_height="match_parent">
<com.nnbc123.app.common.widget.StatusLayout
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_f0f0f0">