unknown 4 anos atrás
pai
commit
e61f5e015d

+ 5 - 9
BaiAnXi/app/src/main/res/layout/layout_task_law.xml

@@ -33,14 +33,13 @@
         <TextView
             android:id="@+id/tv_task_detail_risk_info"
             style="@style/content_style"
-            android:layout_width="wrap_content"
             android:layout_marginStart="16dp"
             android:textColor="@color/bg_white"
             android:textSize="14sp"
             app:layout_constraintLeft_toRightOf="@+id/tv_task_detail_risk"
+            app:layout_constraintRight_toRightOf="@+id/view_task_detail_law_text"
             app:layout_constraintTop_toTopOf="@+id/tv_task_detail_risk" />
 
-
         <TextView
             android:id="@+id/tv_task_detail_result"
             style="@style/text_style"
@@ -55,11 +54,11 @@
         <TextView
             android:id="@+id/tv_task_detail_result_info"
             style="@style/content_style"
-            android:layout_width="wrap_content"
             android:layout_marginStart="16dp"
             android:textColor="@color/bg_white"
             android:textSize="14sp"
             app:layout_constraintLeft_toRightOf="@+id/tv_task_detail_result"
+            app:layout_constraintRight_toRightOf="@+id/tv_task_detail_risk_info"
             app:layout_constraintTop_toTopOf="@+id/tv_task_detail_result" />
 
         <TextView
@@ -75,8 +74,7 @@
 
         <TextView
             android:id="@+id/tv_task_detail_law_info"
-            android:layout_width="0dp"
-            android:layout_height="wrap_content"
+            style="@style/content_style"
             android:layout_marginStart="16dp"
             android:layout_marginEnd="12dp"
             android:textColor="@color/bg_white"
@@ -99,11 +97,11 @@
         <TextView
             android:id="@+id/tv_task_detail_leve_info"
             style="@style/content_style"
-            android:layout_width="wrap_content"
             android:layout_marginStart="16dp"
             android:textColor="@color/bg_white"
             android:textSize="14sp"
             app:layout_constraintLeft_toRightOf="@+id/tv_task_detail_level"
+            app:layout_constraintRight_toRightOf="@+id/view_task_detail_law_text"
             app:layout_constraintTop_toTopOf="@+id/tv_task_detail_level" />
 
         <TextView
@@ -119,10 +117,8 @@
 
         <TextView
             android:id="@+id/tv_task_detail_ctl_info"
-            android:layout_width="0dp"
-            android:layout_height="wrap_content"
+            style="@style/content_style"
             android:layout_marginStart="16dp"
-            android:layout_marginEnd="12dp"
             android:textColor="@color/bg_white"
             android:textSize="14sp"
             app:layout_constraintLeft_toRightOf="@+id/tv_task_detail_ctl"

+ 1 - 1
BaiAnXi/app/src/main/res/values/styles.xml

@@ -23,7 +23,7 @@
     </style>
 
     <style name="content_style">
-        <item name="android:layout_width">wrap_content</item>
+        <item name="android:layout_width">0dp</item>
         <item name="android:layout_height">wrap_content</item>
         <item name="android:textSize">16sp</item>
         <item name="android:textColor">@color/text_color_default</item>