From 705d8e58aa6f13bf6883a7116c7de0edfa1567a6 Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期二, 21 四月 2020 10:50:34 +0800
Subject: [PATCH] 修改联网考试细节ui;基本完成参数设置界面
---
app/src/main/res/layout/layout_base_datas.xml | 133 ++++++++++++++++++++++---------------------
1 files changed, 68 insertions(+), 65 deletions(-)
diff --git a/app/src/main/res/layout/layout_base_datas.xml b/app/src/main/res/layout/layout_base_datas.xml
index 0554463..316cfc4 100644
--- a/app/src/main/res/layout/layout_base_datas.xml
+++ b/app/src/main/res/layout/layout_base_datas.xml
@@ -1,21 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
-<!-- <include layout="@layout/toolbar"/>-->
-<!-- <ScrollView-->
-<!-- android:layout_height="match_parent" android:layout_width="match_parent"-->
-
-<!-- >-->
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/btn_save_platform"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize24px"
+ android:background="@drawable/btn_state_save"
+ android:layout_alignParentEnd="true"
+ android:layout_marginRight="@dimen/ui_margin_10dp"
+ android:layout_above="@+id/ll_container_set"
+ android:text="淇濆瓨"/>
<LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_width="774dp"
+ android:layout_height="320dp"
android:orientation="vertical"
android:padding="10dp"
+ android:id="@+id/ll_container_set"
+ android:layout_centerInParent="true"
+ android:layout_marginLeft="@dimen/ui_margin_10dp"
+ android:layout_marginRight="@dimen/ui_margin_10dp"
android:gravity="center_horizontal"
- android:background="@color/train_bg"
+ android:background="@drawable/stu_score_bg"
>
<LinearLayout
@@ -25,7 +35,8 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@android:color/black"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize25px"
android:text="鑰冭瘯骞冲彴鍦板潃锛�"/>
<TextView
android:layout_width="wrap_content"
@@ -36,6 +47,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="47.93.157.103"
+ android:drawableLeft="@drawable/set_arg_et_drawable"
android:id="@+id/et_platform_ip"
android:background="@android:drawable/editbox_background_normal"/>
<TextView
@@ -50,13 +62,7 @@
android:id="@+id/et_platform_port"
android:background="@android:drawable/editbox_background_normal"/>
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorAccent"
- />
+
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -90,22 +96,18 @@
android:text="9001"
android:background="@android:drawable/editbox_background_normal"/>
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:visibility="gone"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorAccent"
- />
+
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_marginBottom="10dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@android:color/black"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize25px"
android:text="@string/rtk_addr_des"/>
<TextView
android:layout_width="wrap_content"
@@ -130,21 +132,17 @@
android:text="8080"
android:background="@android:drawable/editbox_background_normal"/>
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorAccent"
- />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_marginBottom="10dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@android:color/black"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize25px"
android:text="鐧诲綍淇℃伅锛�"/>
<TextView
android:layout_width="wrap_content"
@@ -185,21 +183,17 @@
android:inputType="numberDecimal"
android:background="@android:drawable/editbox_background_normal"/>
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorAccent"
- />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_marginBottom="10dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@android:color/black"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize25px"
android:text="杞﹁浇淇″彿閰嶇疆锛�"/>
<TableLayout
android:layout_width="match_parent"
@@ -300,22 +294,19 @@
</TableRow>
</TableLayout>
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorAccent"
- />
+
<LinearLayout
android:layout_width="match_parent"
+ android:layout_marginTop="10dp"
+ android:layout_marginBottom="10dp"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@android:color/black"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize25px"
android:text="閰嶇疆鍙傛暟锛�"/>
<TableLayout
android:layout_width="match_parent"
@@ -328,6 +319,8 @@
android:layout_height="wrap_content"
android:text="鍗忓鐞嗗櫒鍗囩骇"
android:padding="5dp"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize21px"
android:id="@+id/btn_mcu_upgrade"
android:layout_marginLeft="15dp"
android:background="@drawable/btn_bg_baseset"/>
@@ -335,6 +328,8 @@
android:layout_height="wrap_content"
android:text="鍦鸿�冨湴鍥鹃�夋嫨"
android:padding="5dp"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize21px"
android:id="@+id/btn_map_select"
android:layout_marginLeft="15dp"
android:background="@drawable/btn_bg_baseset"/>
@@ -342,6 +337,8 @@
android:layout_height="wrap_content"
android:text="杞﹁締妯″瀷閫夋嫨"
android:padding="5dp"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize21px"
android:id="@+id/btn_car_select"
android:layout_marginLeft="15dp"
android:background="@drawable/btn_bg_baseset"/>
@@ -349,6 +346,8 @@
android:layout_height="wrap_content"
android:text="璺�冨湴鍥鹃�夋嫨"
android:padding="5dp"
+ android:textColor="@android:color/white"
+ android:textSize="@dimen/network_train_textsize21px"
android:id="@+id/btn_roadmap_select"
android:layout_marginLeft="15dp"
android:background="@drawable/btn_bg_baseset"/>
@@ -357,20 +356,24 @@
</LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorAccent"
- />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/btn_save_platform"
- android:background="@drawable/btn_state_save"
- android:text="淇濆瓨"/>
+
+
</LinearLayout>
-<!-- </ScrollView>-->
-</LinearLayout>
+ <Button
+ android:id="@+id/btn_return"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:background="@mipmap/return_bg"
+ android:drawableLeft="@mipmap/return_pic"
+ android:gravity="center_vertical"
+ android:paddingLeft="20dp"
+ android:text="杩斿洖"
+ android:drawablePadding="5dp"
+ android:textColor="#FFFFFF"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentBottom="true"
+
+ android:textSize="@dimen/network_train_textsize24px" />
+</RelativeLayout>
--
Gitblit v1.8.0