From b82bada93690fa03574561f298fd116796353343 Mon Sep 17 00:00:00 2001
From: endian11 <Dana_Lee1016@126.com>
Date: 星期二, 19 三月 2019 10:15:36 +0800
Subject: [PATCH] 完善考试界面1

---
 app/src/main/res/layout/profile_layout.xml |  233 +++++++++++++++++++++++++++++++--------------------------
 1 files changed, 126 insertions(+), 107 deletions(-)

diff --git a/app/src/main/res/layout/profile_layout.xml b/app/src/main/res/layout/profile_layout.xml
index 752cbe5..ce9adec 100644
--- a/app/src/main/res/layout/profile_layout.xml
+++ b/app/src/main/res/layout/profile_layout.xml
@@ -1,137 +1,156 @@
 <?xml version="1.0" encoding="utf-8"?>
-<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="120dp"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
-    app:cardElevation="10dp"
-    app:cardBackgroundColor="@color/colorAccent"
-    >
+    android:layout_height="match_parent"
+    android:background="@color/colorAccent"
+    android:gravity="center"
+    android:orientation="horizontal"
+    android:padding="10dp">
+
+    <ImageView
+        android:id="@+id/iv_head"
+        android:layout_width="0dp"
+        android:layout_height="70dp"
+        android:layout_weight="0.5"
+        android:scaleType="fitXY"
+
+        android:src="@drawable/header" />
 
     <LinearLayout
-        android:layout_width="match_parent"
+        android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:orientation="horizontal"
-        android:padding="10dp">
+        android:layout_marginLeft="10dp"
+        android:layout_weight="3.5"
+        android:orientation="vertical">
 
-
-
-        <ImageView
-            android:layout_weight="1"
-            android:layout_width="40dp"
-            android:layout_height="70dp"
-            android:id="@+id/iv_head"/>
-        <RelativeLayout
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content">
-
-        </RelativeLayout>
         <LinearLayout
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_weight="4"
-            android:orientation="horizontal">
+            android:layout_width="match_parent"
+            android:layout_height="0dp"
+            android:layout_weight="1"
+            android:orientation="horizontal"
+         >
+
             <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
                 android:id="@+id/tv_name"
-                android:text="濮撳悕:lizanwei"
-                android:textColor="@color/colorPrimary"
-                android:layout_toRightOf="@+id/iv_head"/>
-            <TextView
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:text="鎬у埆:鐢�"
+                android:layout_toRightOf="@+id/iv_head"
                 android:layout_weight="1"
+                android:text="濮撳悕:lizanwei"
+                android:textColor="@color/colorPrimary" />
+
+            <TextView
                 android:id="@+id/tv_sex"
-                android:layout_toRightOf="@+id/tv_name"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
                 android:layout_marginLeft="10dp"
                 android:layout_marginRight="10dp"
-                android:textColor="@color/colorPrimary"/>
+                android:layout_toRightOf="@+id/tv_name"
+                android:layout_weight="1"
+                android:text="鎬у埆:鐢�"
+                android:textColor="@color/colorPrimary" />
+
             <TextView
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:text="鐢靛瓙鏁欑粌:楂樼骇"
-                android:layout_weight="1"
                 android:layout_toRightOf="@+id/tv_sex"
-                android:textColor="@color/colorPrimary"/>
+                android:layout_weight="1"
+                android:text="鐢靛瓙鏁欑粌:楂樼骇"
+                android:textColor="@color/colorPrimary" />
         </LinearLayout>
+
         <LinearLayout
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            ></LinearLayout>
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="@string/user_id"
-            android:layout_below="@+id/tv_name"
-            android:id="@+id/tv_ID"
-            android:textColor="@color/colorPrimary"
-            android:layout_toRightOf="@+id/iv_head"/>
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:id="@+id/tv_start_time"
-            android:text="寮�濮嬫椂闂达細"
-            android:layout_below="@+id/tv_ID"
-            android:textColor="@color/colorPrimary"
-            android:layout_toRightOf="@+id/iv_head"/>
+            android:layout_width="match_parent"
+            android:layout_height="0dp"
+            android:layout_marginTop="5dp"
+            android:layout_marginBottom="5dp"
+            android:layout_weight="1"
+            >
 
-
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="@string/inspector"
-            android:layout_toRightOf="@+id/tv_ID"
-            android:layout_below="@+id/tv_name"
-            android:id="@+id/inspect"
-            android:textColor="@color/colorPrimary"/>
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="鐢ㄦ椂:"
-            android:layout_marginRight="10dp"
-            android:layout_marginLeft="10dp"
-            android:id="@+id/tv_use_time"
-            android:layout_toRightOf="@+id/tv_ID"
-            android:layout_below="@+id/inspect"
-            android:textColor="@color/colorPrimary"/>
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:text="鏌ョ湅鍦板浘"
-            android:layout_toRightOf="@+id/tv_use_time"
-            android:layout_below="@+id/inspect"
-            android:id="@+id/view_map"
-            android:textColor="@color/colorPrimary"/>
-        <LinearLayout
-            android:layout_width="wrap_content"
-            android:layout_height="120dp"
-            android:padding="5dp"
-            android:layout_alignParentEnd="true"
-            android:gravity="center"
-            android:orientation="vertical"
-            android:layout_toRightOf="@+id/view_map">
-            <ImageView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-
-                android:src="@drawable/wheel"/>
             <TextView
-                android:layout_width="wrap_content"
+                android:id="@+id/tv_ID"
+                android:layout_width="0dp"
                 android:layout_height="wrap_content"
+                android:layout_below="@+id/tv_name"
                 android:layout_weight="1"
+                android:text="@string/user_id"
+                android:textColor="@color/colorPrimary" />
 
-                android:text="100"
-                android:background="@android:color/holo_green_dark"
-                android:padding="8dp"/>
             <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:text="褰撳墠寰楀垎"
+                android:id="@+id/inspect"
+                android:layout_width="0dp"
                 android:layout_weight="1"
-          />
+                android:layout_height="wrap_content"
+                android:text="@string/inspector"
+                android:textColor="@color/colorPrimary" />
         </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_weight="1"
+            android:layout_height="0dp"
+         >
+
+            <TextView
+                android:id="@+id/tv_start_time"
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:text="寮�濮嬫椂闂达細"
+                android:layout_weight="1"
+                android:textColor="@color/colorPrimary" />
+
+
+            <TextView
+                android:id="@+id/tv_use_time"
+                android:layout_width="0dp"
+                android:layout_weight="1"
+                android:layout_height="wrap_content"
+
+                android:text="鐢ㄦ椂:"
+
+                android:textColor="@color/colorPrimary" />
+
+            <TextView
+                android:id="@+id/view_map"
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:text="鏌ョ湅鍦板浘"
+                android:textColor="@color/colorPrimary" />
+        </LinearLayout>
+
     </LinearLayout>
-</android.support.v7.widget.CardView>
\ No newline at end of file
+
+    <LinearLayout
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+
+        android:layout_weight="0.5"
+        android:gravity="center"
+        android:orientation="vertical"
+    >
+
+        <ImageView
+            android:layout_width="wrap_content"
+            android:layout_height="0dp"
+            android:layout_weight="1"
+
+            android:src="@drawable/wheel" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="0dp"
+            android:layout_weight="1"
+            android:layout_marginBottom="5dp"
+            android:layout_marginTop="5dp"
+            android:background="@android:color/holo_green_dark"
+            android:padding="5dp"
+            android:text="100" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="0dp"
+            android:layout_weight="1"
+            android:text="褰撳墠寰楀垎" />
+    </LinearLayout>
+</LinearLayout>
\ No newline at end of file

--
Gitblit v1.8.0