Ver Fonte

Add background and margin to home dash cell -- 首页dash单元格增加背景和边距 (resolve: #14250)
Adjust the homepage dash cell alignment -- 调整首页dash单元格对齐 (resolve: #14251)

Ray Zhang há 4 anos atrás
pai
commit
1ca3826efa

+ 1 - 0
ApexDrivers/ratradefiling/src/main/java/com/usai/ratradefiling/home/dashcell/error/HomeDashACEM1CellE.java

@@ -47,6 +47,7 @@ public class HomeDashACEM1CellE extends LinearLayout {
         snTV = findViewById(R.id.tv_sn);
         hbolTV = findViewById(R.id.tv_hbol);
         logTv = findViewById(R.id.tv_log);
+//        setBackgroundResource(R.drawable.round_corner_bg);
 //        detailTv = findViewById(R.id.tv_detail);
 //        portTv = findViewById(R.id.tv_port);
 //        statusIv = findViewById(R.id.iv_status);

+ 9 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_acem1_cell_e.xml

@@ -5,16 +5,23 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg"
+        >
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"

+ 11 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_acem1_cell_p.xml

@@ -5,18 +5,27 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg"
+        >
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
+
             android:text="999"
             android:textSize="18sp"
             app:layout_constraintBottom_toBottomOf="parent"

+ 9 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_aci_cell_e.xml

@@ -5,16 +5,23 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg"
+        >
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"

+ 9 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_aci_cell_p.xml

@@ -5,16 +5,23 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg"
+        >
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"

+ 9 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_emanifest_cell_e.xml

@@ -5,16 +5,23 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg"
+        >
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"

+ 11 - 3
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_emanifest_cell_p.xml

@@ -4,16 +4,24 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:orientation="vertical">
+    android:orientation="vertical"
+
+    >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg"
+        >
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"

+ 8 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_isf_cell_e.xml

@@ -5,16 +5,22 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg">
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"

+ 8 - 2
ApexDrivers/ratradefiling/src/main/res/layout/home_dash_isf_cell_p.xml

@@ -5,16 +5,22 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"
+
     >
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:id="@+id/apex_result_ship_top"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="5dp"
+        android:layout_marginRight="5dp"
+        android:layout_marginTop="1dp"
+        android:background="@drawable/round_corner_bg">
 
         <TextView
             android:id="@+id/tv_sn"
-            android:layout_width="wrap_content"
+            android:layout_width="40dp"
+            android:gravity="center"
             android:layout_height="wrap_content"
             android:layout_marginStart="15dp"
             android:text="999"