|
@@ -0,0 +1,166 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:tool="http://schemas.android.com/tools"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:background="@drawable/login_button_normal"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/TextTitle"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/app_title"
|
|
|
+ android:padding="15dp"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_25" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ImageSetting"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ android:padding="10dp"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/TextTitle"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/TextTitle"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
+ android:src="@mipmap/icon_setting"
|
|
|
+ />
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ImageStatus"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ android:padding="10dp"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/TextTitle"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/TextTitle"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/ImageSetting"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
+ android:src="@mipmap/icon_status"
|
|
|
+ />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ViewClock"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/ViewMenu"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/TextTitle"
|
|
|
+
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/FragmentView"
|
|
|
+ android:layout_marginStart="40dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ app:layout_constraintHorizontal_weight="2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+
|
|
|
+ android:background="@drawable/card_white"
|
|
|
+
|
|
|
+ >
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/FragmentView"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/ViewClock"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/ViewClock"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/ViewClock"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginEnd="40dp"
|
|
|
+ app:layout_constraintHorizontal_weight="5"
|
|
|
+
|
|
|
+
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ >
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_marginStart="30dp"
|
|
|
+ android:layout_marginEnd="30dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ android:id="@+id/ViewMenu"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/ViewClock"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ >
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/MenuItemRecord"
|
|
|
+ style="@style/Home_Menu_Item_View">
|
|
|
+ <ImageView
|
|
|
+ android:background="@drawable/menu_orange"
|
|
|
+ android:src="@mipmap/icon_list"
|
|
|
+ style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ <TextView
|
|
|
+ style="@style/Home_Menu_Item_Label"
|
|
|
+ android:text="访客记录"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/MenuItemSign"
|
|
|
+ style="@style/Home_Menu_Item_View">
|
|
|
+ <ImageView
|
|
|
+ android:background="@drawable/menu_green"
|
|
|
+ android:src="@mipmap/icon_sign"
|
|
|
+ style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ <TextView
|
|
|
+ style="@style/Home_Menu_Item_Label"
|
|
|
+ android:text="访客签到"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/MenuItemRegister"
|
|
|
+ style="@style/Home_Menu_Item_View">
|
|
|
+ <ImageView
|
|
|
+ android:background="@drawable/menu_yellow"
|
|
|
+ android:src="@mipmap/icon_people"
|
|
|
+ style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ <TextView
|
|
|
+ style="@style/Home_Menu_Item_Label"
|
|
|
+ android:text="访客登记"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/MenuItemLeave"
|
|
|
+ style="@style/Home_Menu_Item_View">
|
|
|
+ <ImageView
|
|
|
+ android:background="@drawable/menu_red"
|
|
|
+ android:src="@mipmap/icon_leave"
|
|
|
+ style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ <TextView
|
|
|
+ style="@style/Home_Menu_Item_Label"
|
|
|
+ android:text="访客签离"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/MenuItemCheck"
|
|
|
+ style="@style/Home_Menu_Item_View">
|
|
|
+ <ImageView
|
|
|
+ android:background="@drawable/menu_gray"
|
|
|
+ android:src="@mipmap/icon_check"
|
|
|
+ style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ <TextView
|
|
|
+ style="@style/Home_Menu_Item_Label"
|
|
|
+ android:text="快速核验"
|
|
|
+ />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|