|
|
@@ -5,7 +5,6 @@
|
|
|
android:id="@+id/main"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- tools:background="@color/main_color"
|
|
|
tools:context=".activity.HomeActivity">
|
|
|
|
|
|
<!-- <com.grkj.iscs.widget.TitleBar-->
|
|
|
@@ -16,6 +15,15 @@
|
|
|
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
|
|
<!-- app:title="@string/home_page" />-->
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_exit"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_margin="@dimen/home_module_margin"
|
|
|
+ android:text="@string/exit"
|
|
|
+ android:textColor="@color/main_color"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
@@ -32,7 +40,8 @@
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_margin="3dp"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
+ android:background="@color/main_color"
|
|
|
+ android:gravity="center"
|
|
|
android:orientation="vertical"
|
|
|
app:layout_constraintBottom_toTopOf="@id/ll_sop"
|
|
|
app:layout_constraintLeft_toLeftOf="@id/barrier"
|
|
|
@@ -44,7 +53,10 @@
|
|
|
style="@style/CommonTextView"
|
|
|
android:text="@string/current_time" />
|
|
|
|
|
|
- <TextClock style="@style/CommonTextView" />
|
|
|
+ <TextClock
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:format12Hour="HH:mm"
|
|
|
+ android:format24Hour="HH:mm" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
<!-- 当前作业票 -->
|
|
|
@@ -53,7 +65,8 @@
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_margin="3dp"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
+ android:background="@color/main_color"
|
|
|
+ android:gravity="center"
|
|
|
android:orientation="vertical"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="@id/barrier"
|
|
|
@@ -92,7 +105,7 @@
|
|
|
android:layout_height="match_parent"
|
|
|
android:layout_margin="3dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
+ android:background="@color/main_color"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
</LinearLayout>
|
|
|
@@ -103,7 +116,7 @@
|
|
|
android:layout_height="match_parent"
|
|
|
android:layout_margin="3dp"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
+ android:background="@color/main_color"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
</LinearLayout>
|
|
|
@@ -114,47 +127,44 @@
|
|
|
android:id="@+id/ll_type_four"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
app:layout_constraintHorizontal_weight="1"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toLeftOf="@id/barrier"
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_margin="3dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@color/colorPrimary">
|
|
|
-
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
-
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_margin="3dp"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_create"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="@dimen/home_module_margin"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/colorPrimary">
|
|
|
-
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ android:background="@color/main_color"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:text="@string/create_ticket" />
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_margin="3dp"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_current"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="@dimen/home_module_margin"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/colorPrimary">
|
|
|
+ android:background="@color/main_color"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:text="@string/current_tickets" />
|
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
-
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_margin="3dp"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_history"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="@dimen/home_module_margin"
|
|
|
android:layout_weight="1"
|
|
|
- android:background="@color/colorPrimary">
|
|
|
-
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ android:background="@color/main_color"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:text="@string/history_tickets" />
|
|
|
</LinearLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|