|
|
@@ -0,0 +1,162 @@
|
|
|
+<?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:background="@color/main_color"
|
|
|
+ tools:context=".activity.HomeActivity">
|
|
|
+
|
|
|
+ <!-- <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" />-->
|
|
|
+
|
|
|
+ <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="10px"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ 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" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 当前作业票 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_sop"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_margin="10px"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:orientation="vertical"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/ll_time"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/ll_time">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:text="@string/current_sop_number" />
|
|
|
+
|
|
|
+ <TextView 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"
|
|
|
+ app:layout_constraintHorizontal_weight="1"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/barrier"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_module_left"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="10px"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_module_right"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="10px"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 4按钮 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_type_four"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ 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_weight="1"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:layout_margin="10px">
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:layout_margin="10px">
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:layout_margin="10px">
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:layout_margin="10px">
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|