Parcourir la source

feat: 列表空状态

DoggyZhang il y a 3 mois
Parent
commit
b056fb0eb7

BIN
app/src/main/res/drawable-xhdpi/common_follow_list_empty_ic.png


BIN
app/src/main/res/drawable-xhdpi/common_list_empty_ic.webp


BIN
app/src/main/res/drawable-xhdpi/common_net_error_ic.webp


BIN
app/src/main/res/drawable-xhdpi/common_order_list_empty_ic.png


+ 1 - 1
module/order/src/main/java/com/adealink/weparty/order/PlaymateOrderListActivity.kt

@@ -91,7 +91,7 @@ class PlaymateOrderListActivity : BaseActivity(),
             if (it.isNullOrEmpty()) {
                 binding.rvOrder.gone()
                 binding.vErrorView.show(
-                    errorEmptyResId = APP_R.drawable.common_list_empty_ic,
+                    errorEmptyResId = APP_R.drawable.common_order_list_empty_ic,
                     title = APP_R.string.commonui_list_empty
                 )
             } else {

+ 1 - 1
module/order/src/main/java/com/adealink/weparty/order/UserOrderListActivity.kt

@@ -92,7 +92,7 @@ class UserOrderListActivity : BaseActivity(), UserOrderListItemViewBinder.OrderL
             if (it.isNullOrEmpty()) {
                 binding.rvOrder.gone()
                 binding.vErrorView.show(
-                    errorEmptyResId = APP_R.drawable.common_list_empty_ic,
+                    errorEmptyResId = APP_R.drawable.common_order_list_empty_ic,
                     title = APP_R.string.commonui_list_empty
                 )
             } else {

+ 1 - 1
module/profile/src/main/java/com/adealink/weparty/profile/relation/FansFragment.kt

@@ -67,7 +67,7 @@ class FansFragment : BaseFragment(R.layout.fragment_fans), FansItemViewBinder.On
             if (it.isNullOrEmpty()) {
                 binding.rvFans.gone()
                 binding.vErrorView.show(
-                    errorEmptyResId = APP_R.drawable.common_list_empty_ic,
+                    errorEmptyResId = APP_R.drawable.common_follow_list_empty_ic,
                     title = APP_R.string.commonui_list_empty
                 )
             } else {

+ 1 - 1
module/profile/src/main/java/com/adealink/weparty/profile/relation/FollowFragment.kt

@@ -70,7 +70,7 @@ class FollowFragment : BaseFragment(R.layout.fragment_follow),
             if (it.isNullOrEmpty()) {
                 binding.rvFollow.gone()
                 binding.vErrorView.show(
-                    errorEmptyResId = APP_R.drawable.common_list_empty_ic,
+                    errorEmptyResId = APP_R.drawable.common_follow_list_empty_ic,
                     title = APP_R.string.commonui_list_empty
                 )
             } else {

+ 18 - 0
module/profile/src/main/res/layout/layout_profile_skill_item.xml

@@ -32,11 +32,16 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginStart="10dp"
+        android:layout_marginEnd="6dp"
         android:fontFamily="@font/poppins_semibold"
         android:includeFontPadding="false"
+        android:singleLine="true"
         android:textColor="@color/white"
         android:textSize="14sp"
+        app:layout_constrainedWidth="true"
         app:layout_constraintBottom_toTopOf="@id/iv_coin"
+        app:layout_constraintEnd_toStartOf="@id/right_barrier"
+        app:layout_constraintHorizontal_bias="0"
         app:layout_constraintStart_toEndOf="@id/iv_icon"
         app:layout_constraintTop_toTopOf="@id/iv_bg"
         app:layout_constraintVertical_chainStyle="packed"
@@ -55,14 +60,27 @@
         android:id="@+id/tv_desc"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:layout_marginStart="2dp"
+        android:layout_marginEnd="6dp"
         android:includeFontPadding="false"
+        android:singleLine="true"
         android:textColor="@color/white"
         android:textSize="12sp"
+        app:layout_constrainedWidth="true"
         app:layout_constraintBottom_toBottomOf="@id/iv_coin"
+        app:layout_constraintEnd_toStartOf="@id/right_barrier"
+        app:layout_constraintHorizontal_bias="0"
         app:layout_constraintStart_toEndOf="@id/iv_coin"
         app:layout_constraintTop_toTopOf="@id/iv_coin"
         tools:text="LoLLoLLoLLoLLoL" />
 
+    <androidx.constraintlayout.widget.Barrier
+        android:id="@+id/right_barrier"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        app:barrierDirection="start"
+        app:constraint_referenced_ids="btn_order" />
+
     <androidx.appcompat.widget.AppCompatTextView
         android:id="@+id/btn_order"
         android:layout_width="wrap_content"