From 7815e8d838fcd1bca3792671dc20dde77125a343 Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期一, 20 四月 2020 17:16:30 +0800
Subject: [PATCH] 基本完成联网考试和单机训练界面
---
app/src/main/res/layout/layout_net_train_item.xml | 97 +++++++++++++++++++++++++-----------------------
1 files changed, 51 insertions(+), 46 deletions(-)
diff --git a/app/src/main/res/layout/layout_net_train_item.xml b/app/src/main/res/layout/layout_net_train_item.xml
index 41c2f8a..d01b5ec 100644
--- a/app/src/main/res/layout/layout_net_train_item.xml
+++ b/app/src/main/res/layout/layout_net_train_item.xml
@@ -1,51 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout
+<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
- android:background="@color/train_item_bg"
- android:gravity="bottom">
-
-<safeluck.drive.evaluation.customview.HouseView
- android:layout_width="80dp"
- android:layout_height="80dp"
- android:id="@+id/hv"
- app:text = "鍊掕溅鍏ュ簱"
- />
-
- <safeluck.drive.evaluation.customview.ArrowView
- android:layout_width="80dp"
- android:layout_height="80dp"
- android:layout_toRightOf="@+id/hv"
- android:id="@+id/av1"
- app:text="鍧¢亾瀹氱偣"
- android:layout_marginLeft="-15dp"
- />
- <safeluck.drive.evaluation.customview.ArrowView
- android:layout_width="80dp"
- android:layout_height="80dp"
- app:text="渚ф柟鍋滆溅"
- android:layout_marginLeft="-15dp"
- android:layout_toRightOf="@+id/av1"
- android:id="@+id/av2"
- />
- <safeluck.drive.evaluation.customview.ArrowView
- android:layout_width="80dp"
- android:layout_height="80dp"
- android:id="@+id/av3"
- app:text="鏇茬嚎琛岄┒"
- android:layout_marginLeft="-15dp"
- android:layout_toRightOf="@id/av2"
- />
- <safeluck.drive.evaluation.customview.ArrowView
- android:layout_width="80dp"
- android:layout_height="80dp"
- android:layout_marginLeft="-15dp"
- android:layout_toRightOf="@+id/av3"
- android:id="@+id/av4"
- app:text="鐩磋杞集"
-
- />
-</RelativeLayout>
\ No newline at end of file
+ android:gravity="center_vertical">
+ <Button
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:background="@drawable/btn_exam_item_bg"
+ android:layout_height="48dp"
+ android:textColor="#FFFFFF"
+ android:layout_marginRight="@dimen/ui_margin_20dp"
+ style="@style/ui_exam_font"
+ android:id="@+id/hv"
+ android:text="鍊掕溅鍏ュ簱"/>
+<Button
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:background="@drawable/btn_exam_item_bg"
+ android:layout_height="48dp"
+ android:textColor="#FFFFFF"
+ style="@style/ui_exam_font"
+ android:id="@+id/av1"
+ android:layout_marginRight="@dimen/ui_margin_20dp"
+ android:text="鍧¢亾瀹氱偣"/>
+ <Button
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:background="@drawable/btn_exam_item_bg"
+ android:layout_height="48dp"
+ android:textColor="#FFFFFF"
+ android:layout_marginRight="@dimen/ui_margin_20dp"
+ style="@style/ui_exam_font"
+ android:id="@+id/av2"
+ android:text="渚ф柟鍋滆溅"/>
+ <Button
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:background="@drawable/btn_exam_item_bg"
+ android:layout_height="48dp"
+ android:layout_marginRight="@dimen/ui_margin_20dp"
+ android:textColor="#FFFFFF"
+ style="@style/ui_exam_font"
+ android:id="@+id/av3"
+ android:text="鏇茬嚎琛岄┒"/><Button
+ android:layout_width="0dp"
+ android:layout_weight="1"
+ android:background="@drawable/btn_exam_item_bg"
+ android:layout_height="48dp"
+ android:textColor="#FFFFFF"
+ style="@style/ui_exam_font"
+ android:id="@+id/av4"
+ android:text="鐩磋杞集"/>
+</LinearLayout>
\ No newline at end of file
--
Gitblit v1.8.0