Sfoglia il codice sorgente

1.修改Android RedAnt Mobile KVDetail布局。

Pen Li 8 anni fa
parent
commit
33c45ccdce

+ 1 - 0
RedAnt Mobile/app/src/main/res/layout/activity_kvdetail.xml

@@ -13,6 +13,7 @@
         android:id="@+id/kv_listView"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
+        android:groupIndicator="@null"
         >
 
 

+ 12 - 3
RedAnt Mobile/app/src/main/res/layout/kv_list_detail_cell.xml

@@ -2,7 +2,8 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:orientation="horizontal"
               android:layout_width="match_parent"
-              android:layout_height="match_parent">
+              android:layout_height="match_parent"
+              >
 
     <TextView
         android:id="@+id/detail_title_lb"
@@ -11,11 +12,15 @@
         android:textSize="20sp"
         android:textColor="#000000"
         android:gravity="start|center_vertical"
+        android:layout_marginStart="10dp"
+        android:layout_marginEnd="10dp"
+        android:layout_marginTop="5dp"
+        android:layout_marginBottom="5dp"
         />
     <View
-        android:layout_width="1dp"
+        android:layout_width="0.5dp"
         android:layout_height="match_parent"
-        android:background="@color/dark_gray"
+        android:background="#BEBEBE"
         />
     <TextView
         android:id="@+id/detail_val_lb"
@@ -24,6 +29,10 @@
         android:layout_height="match_parent"
         android:textSize="20sp"
         android:textColor="#000000"
+        android:layout_marginStart="10dp"
+        android:layout_marginEnd="10dp"
+        android:layout_marginTop="5dp"
+        android:layout_marginBottom="5dp"
         />
 
 </LinearLayout>

+ 4 - 2
RedAnt Mobile/app/src/main/res/layout/kv_list_section_cell.xml

@@ -2,7 +2,9 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:orientation="horizontal"
               android:layout_width="match_parent"
-              android:layout_height="match_parent">
+              android:layout_height="match_parent"
+              android:background="#69C3F4"
+              >
 
     <TextView
         android:id="@+id/kv_list_section_title_lb"
@@ -11,7 +13,7 @@
         android:gravity="start|center_vertical"
         android:textSize="20sp"
         android:textColor="#ffffff"
-        android:background="#69C3F4"
+        android:layout_margin="10dp"
         />
 
 </LinearLayout>