Browse Source

upgrade:人员列表-item优化

xwh 2 weeks ago
parent
commit
cee2204e23
1 changed files with 16 additions and 6 deletions
  1. 16 6
      app/src/main/res/layout/personneldata_adapter.xml

+ 16 - 6
app/src/main/res/layout/personneldata_adapter.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="@dimen/dp_208"
+    android:layout_height="@dimen/dp_235"
     android:orientation="vertical">
     <LinearLayout
         android:layout_width="match_parent"
@@ -17,11 +17,18 @@
             android:layout_width="@dimen/dp_160"
             android:layout_height="@dimen/dp_160"
             android:src="@mipmap/ic_person_default" />
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:orientation="horizontal">
+
+
 
         <LinearLayout
-            android:layout_width="wrap_content"
+            android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:orientation="vertical"
+            android:layout_weight="1"
             android:layout_toRightOf="@+id/personnelDataAdapter_titleImage"
             android:layout_marginLeft="@dimen/dp_28"
             android:layout_marginTop="@dimen/dp_20">
@@ -32,7 +39,7 @@
                 <TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:text="   I D: "
+                    android:text="I D  : "
                     android:textSize="@dimen/dp_28"
                     android:textColor="@color/f4E8FFF"/>
                 <TextView
@@ -83,8 +90,11 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:orientation="vertical"
-            android:gravity="center_vertical"
-            android:layout_marginLeft="@dimen/dp_88">
+            android:layout_weight="1"
+            android:layout_marginLeft="@dimen/dp_5"
+
+
+         >
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
@@ -121,7 +131,7 @@
                     android:textSize="@dimen/dp_26"/>
             </LinearLayout>
         </LinearLayout>
-
+        </LinearLayout>
     </LinearLayout>
     <View
         android:layout_width="match_parent"