|
@@ -1,177 +0,0 @@
|
|
|
-<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
- android:id="@+id/main"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- tools:context=".view.activity.CustomHomeActivity">
|
|
|
|
|
-
|
|
|
|
|
- <!-- <com.grkj.iscs.widget.TitleBar-->
|
|
|
|
|
- <!-- android:id="@+id/title_bar"-->
|
|
|
|
|
- <!-- android:layout_width="match_parent"-->
|
|
|
|
|
- <!-- android:layout_height="wrap_content"-->
|
|
|
|
|
- <!-- app:layout_constraintLeft_toLeftOf="parent"-->
|
|
|
|
|
- <!-- 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"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
- app:layout_constraintHeight_percent="0.6"
|
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
- app:layout_constraintWidth_percent="0.8">
|
|
|
|
|
-
|
|
|
|
|
- <!-- 当前时间 -->
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_time"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_margin="3dp"
|
|
|
|
|
- android:background="@color/main_color"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- app:layout_constraintBottom_toTopOf="@id/ll_sop"
|
|
|
|
|
- app:layout_constraintLeft_toLeftOf="@id/barrier"
|
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
- app:layout_constraintWidth_percent="0.25">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- style="@style/CommonTextView"
|
|
|
|
|
- android:text="@string/current_time" />
|
|
|
|
|
-
|
|
|
|
|
- <TextClock
|
|
|
|
|
- style="@style/CommonTextView"
|
|
|
|
|
- android:format12Hour="HH:mm"
|
|
|
|
|
- android:format24Hour="HH:mm" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 当前作业票 -->
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_sop"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_margin="3dp"
|
|
|
|
|
- android:background="@color/main_color"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
- app:layout_constraintLeft_toLeftOf="@id/barrier"
|
|
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/ll_time">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- style="@style/CommonTextView"
|
|
|
|
|
- android:text="@string/current_sop_number" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_count"
|
|
|
|
|
- style="@style/CommonTextView" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <androidx.constraintlayout.widget.Barrier
|
|
|
|
|
- android:id="@+id/barrier"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- app:barrierDirection="start"
|
|
|
|
|
- app:constraint_referenced_ids="ll_time,ll_sop" />
|
|
|
|
|
-
|
|
|
|
|
- <!-- 2按钮 -->
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_type_two"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
|
- android:visibility="gone"
|
|
|
|
|
- app:layout_constraintHorizontal_weight="1"
|
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toLeftOf="@id/barrier"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_module_left"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:layout_margin="3dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:background="@color/main_color"
|
|
|
|
|
- android:orientation="vertical">
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_module_right"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:layout_margin="3dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:background="@color/main_color"
|
|
|
|
|
- android:orientation="vertical">
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 4按钮 -->
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_type_four"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
|
- app:layout_constraintHorizontal_weight="1"
|
|
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
- app:layout_constraintRight_toLeftOf="@id/barrier"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
-
|
|
|
|
|
- <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/main_color"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- android:text="@string/create_ticket"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
-
|
|
|
|
|
- <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/main_color"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- android:text="@string/current_tickets"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
-
|
|
|
|
|
- <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/main_color"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- android:text="@string/history_tickets"
|
|
|
|
|
- android:visibility="gone" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|