|
@@ -1,166 +1,176 @@
|
|
|
<?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: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"
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/FragmentView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginEnd="40dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/ViewClock"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="66766"
|
|
|
- android:padding="15dp"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/sp_25" />
|
|
|
+ app:layout_constraintHorizontal_weight="5"
|
|
|
+
|
|
|
+
|
|
|
+ app:layout_constraintStart_toEndOf="@id/ViewClock"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/ViewClock"
|
|
|
+
|
|
|
+
|
|
|
+ >
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
|
|
|
<ImageView
|
|
|
- android:id="@+id/ImageSetting"
|
|
|
+ android:id="@+id/ImageStatus"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
- app:layout_constraintDimensionRatio="1:1"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
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"
|
|
|
- />
|
|
|
+ android:src="@drawable/ui_vector_status"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/TextTitle"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/ImageSetting"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/TextTitle" />
|
|
|
+
|
|
|
<ImageView
|
|
|
- android:id="@+id/ImageStatus"
|
|
|
+ android:id="@+id/ImageSetting"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
- app:layout_constraintDimensionRatio="1:1"
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
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"
|
|
|
- />
|
|
|
+ android:src="@drawable/ui_vector_setting"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/TextTitle"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/TextTitle" />
|
|
|
|
|
|
<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_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
android:layout_marginStart="40dp"
|
|
|
- android:layout_marginEnd="10dp"
|
|
|
+
|
|
|
android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
android:layout_marginBottom="10dp"
|
|
|
+ android:background="@drawable/card_white"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/ViewMenu"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/FragmentView"
|
|
|
app:layout_constraintHorizontal_weight="2"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
- android:background="@drawable/card_white"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/TextTitle"
|
|
|
|
|
|
>
|
|
|
|
|
|
</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:layout_marginStart="30dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginEnd="30dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
android:orientation="horizontal"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/ViewClock"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- >
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/ViewClock">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/MenuItemRecord"
|
|
|
style="@style/Home_Menu_Item_View">
|
|
|
+
|
|
|
<ImageView
|
|
|
+ style="@style/Home_Menu_Item_Icon"
|
|
|
android:background="@drawable/menu_orange"
|
|
|
- android:src="@mipmap/icon_list"
|
|
|
- style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ android:src="@drawable/ui_vector_record" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/Home_Menu_Item_Label"
|
|
|
- android:text="访客记录"
|
|
|
- />
|
|
|
+ android:text="访客记录" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/MenuItemSign"
|
|
|
style="@style/Home_Menu_Item_View">
|
|
|
+
|
|
|
<ImageView
|
|
|
+ style="@style/Home_Menu_Item_Icon"
|
|
|
android:background="@drawable/menu_green"
|
|
|
- android:src="@mipmap/icon_sign"
|
|
|
- style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ android:src="@drawable/ui_vector_sign" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/Home_Menu_Item_Label"
|
|
|
- android:text="访客签到"
|
|
|
- />
|
|
|
+ android:text="访客签到" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/MenuItemRegister"
|
|
|
style="@style/Home_Menu_Item_View">
|
|
|
+
|
|
|
<ImageView
|
|
|
+ style="@style/Home_Menu_Item_Icon"
|
|
|
android:background="@drawable/menu_yellow"
|
|
|
- android:src="@mipmap/icon_people"
|
|
|
- style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ android:src="@drawable/ui_vector_register" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/Home_Menu_Item_Label"
|
|
|
- android:text="访客登记"
|
|
|
- />
|
|
|
+ android:text="访客登记" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/MenuItemLeave"
|
|
|
style="@style/Home_Menu_Item_View">
|
|
|
+
|
|
|
<ImageView
|
|
|
+ style="@style/Home_Menu_Item_Icon"
|
|
|
android:background="@drawable/menu_red"
|
|
|
- android:src="@mipmap/icon_leave"
|
|
|
- style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ android:src="@drawable/ui_vector_leave" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/Home_Menu_Item_Label"
|
|
|
- android:text="访客签离"
|
|
|
- />
|
|
|
+ android:text="访客签离" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/MenuItemCheck"
|
|
|
style="@style/Home_Menu_Item_View">
|
|
|
+
|
|
|
<ImageView
|
|
|
+ style="@style/Home_Menu_Item_Icon"
|
|
|
android:background="@drawable/menu_gray"
|
|
|
- android:src="@mipmap/icon_check"
|
|
|
- style="@style/Home_Menu_Item_Icon"/>
|
|
|
+ android:src="@drawable/ui_vector_check" />
|
|
|
+
|
|
|
<TextView
|
|
|
style="@style/Home_Menu_Item_Label"
|
|
|
- android:text="快速核验"
|
|
|
- />
|
|
|
+ android:text="快速核验" />
|
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/TextTitle"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="15dp"
|
|
|
+ android:text="@string/app_name"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/sp_25"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|