From b40bc095c5684fd518286ce288e7ba1b2516c373 Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期六, 18 四月 2020 20:13:24 +0800
Subject: [PATCH] 联网考试和单机测试界面

---
 app/src/main/res/layout/layout_home_fragment.xml |  148 ++++++++++++++++++++++--------------------------
 1 files changed, 68 insertions(+), 80 deletions(-)

diff --git a/app/src/main/res/layout/layout_home_fragment.xml b/app/src/main/res/layout/layout_home_fragment.xml
index d827884..dee3ee6 100644
--- a/app/src/main/res/layout/layout_home_fragment.xml
+++ b/app/src/main/res/layout/layout_home_fragment.xml
@@ -3,91 +3,79 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     xmlns:app="http://schemas.android.com/apk/res-auto">
-
-    <safeluck.drive.evaluation.customview.CircleImageView
-        android:layout_width="104dp"
-        android:layout_height="104dp"
-        android:src="@drawable/home_circle"
-        app:civ_fill_color="#2B3140"
-        app:civ_border_width="10dp"
-        android:layout_centerInParent="true"
-
-        />
-
-
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:orientation="horizontal"
-        android:gravity="center"
-        android:visibility="gone"
-       >
-        <LinearLayout
-            android:layout_width="100dp"
-            android:layout_height="100dp"
-            android:gravity="center"
+    <RelativeLayout
+        android:layout_width="560dp"
+        android:layout_height="254dp"
+        android:layout_centerInParent="true">
+        <RelativeLayout
+            android:layout_width="280dp"
+            android:layout_height="122dp"
+            android:background="@drawable/sys_home_part_bg"
             android:id="@+id/network_train"
-            android:layout_weight="1"
-            android:orientation="vertical">
-            <safeluck.drive.evaluation.customview.CircleImageView
-                style="@style/home_fragment_icon"
+            >
+            <include
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:layout_centerInParent="true"
+                layout="@layout/layout_sys_home_part"/>
+        </RelativeLayout>
+        <RelativeLayout
+            android:layout_width="280dp"
+            android:layout_height="122dp"
 
-                android:src="@drawable/vehicle_network"
-        />
-            <TextView
-                style="@style/home_fragment_text_sub"
-                android:text="@string/vehicle_net"
-      />
-        </LinearLayout>
-        <LinearLayout
-            android:layout_width="100dp"
-            android:layout_height="100dp"
-            android:gravity="center"
-            android:layout_weight="1"
+            android:background="@drawable/sys_home_part_bg"
+            android:layout_toRightOf="@+id/network_train"
             android:id="@+id/car_train"
-            android:orientation="vertical">
-
-            <safeluck.drive.evaluation.customview.CircleImageView
-
-                style="@style/home_fragment_icon"
-                android:src="@drawable/wheel" />
-
-            <TextView
-                style="@style/home_fragment_text_sub"
-                android:text="@string/vehicle_train"
-   />
-        </LinearLayout>
-        <LinearLayout
-            android:layout_width="100dp"
-            android:layout_height="100dp"
-            android:gravity="center"
+            >
+            <include
+                android:layout_width="280dp"
+                android:layout_height="122dp"
+                android:layout_centerInParent="true"
+                layout="@layout/layout_sys_home_part_train"/>
+        </RelativeLayout>
+        <RelativeLayout
+            android:layout_width="280dp"
+            android:layout_height="122dp"
+            android:layout_marginTop="7dp"
+            android:background="@drawable/sys_home_part_bg"
             android:id="@+id/system_setting"
-            android:layout_weight="1"
-            android:orientation="vertical">
-            <safeluck.drive.evaluation.customview.CircleImageView
-                android:src="@drawable/setting"
-                style="@style/home_fragment_icon"/>
-            <TextView
-                style="@style/home_fragment_text_sub"
-                android:text="@string/setting"
-              />
-        </LinearLayout>
-        <LinearLayout
-            android:layout_width="100dp"
-            android:layout_height="100dp"
-            android:gravity="center"
+            android:layout_below="@+id/network_train"
+            >
+            <include
+                android:layout_width="280dp"
+                android:layout_height="122dp"
+                android:layout_centerInParent="true"
+                layout="@layout/layout_sys_home_part_set"/>
+        </RelativeLayout>
+        <RelativeLayout
+            android:layout_width="280dp"
+            android:layout_height="122dp"
+            android:background="@drawable/sys_home_part_bg"
             android:id="@+id/exit_sys"
-            android:layout_weight="1"
-            android:orientation="vertical">
-            <safeluck.drive.evaluation.customview.CircleImageView
-                android:src="@drawable/exit"
-                style="@style/home_fragment_icon"/>
-            <TextView
-                style="@style/home_fragment_text_sub"
-                android:text="@string/exit"
-               />
-        </LinearLayout>
-    </LinearLayout>
+            android:layout_marginTop="7dp"
+            android:layout_toRightOf="@+id/system_setting"
+            android:layout_below="@+id/network_train"
+            >
+            <include
+                android:layout_width="280dp"
+                android:layout_height="122dp"
+                android:layout_centerInParent="true"
+                layout="@layout/layout_sys_home_part_exit"/>
+        </RelativeLayout>
+        <safeluck.drive.evaluation.customview.CircleImageView
+            android:layout_width="104dp"
+            android:layout_height="104dp"
+            android:src="@drawable/home_circle"
+            app:civ_fill_color="#2B3140"
+            app:civ_border_width="10dp"
+            android:layout_centerInParent="true"
+
+            />
+
+    </RelativeLayout>
+
+
+
     <TextView
         style="@style/home_fragment_text"
         android:text="@string/version_name"

--
Gitblit v1.8.0