|
|
@@ -1,8 +1,443 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
- <RelativeLayout
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.grkj.ui_base.widget.ShadowTextView
|
|
|
+ android:id="@+id/title_cn"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="40dp"
|
|
|
+ android:text="@string/loto"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="40sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="180dp"
|
|
|
+ android:layout_marginHorizontal="20dp"
|
|
|
+ android:layout_marginTop="40dp"
|
|
|
+ android:background="@drawable/home_card_bg">
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/quick_entrance_rv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_margin="20dp"
|
|
|
+ tools:listitem="@layout/item_home_quick_entrance" />
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginHorizontal="20dp"
|
|
|
+ android:layout_marginVertical="10dp"
|
|
|
+ android:divider="@drawable/common_divider_normal_space_vertical"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/home_card_bg"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/realtime_data_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/home_card_title_bg"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:text="@string/home_realtime_data_title"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/realtime_data_filter_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="10dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/zone"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/real_time_data_zone"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@drawable/icon_drop_down"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:textSize="22sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/lock_mode"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/lock_mode"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@drawable/icon_drop_down"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:textSize="22sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="80dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:divider="@drawable/common_divider_normal_space_horizontal"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/common_divider_small_space_horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/ongoing_job_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ongoing_job_num"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_card_num"
|
|
|
+ android:backgroundTint="@color/color_ffec99"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="2"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="30sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/common_divider_small_space_horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/locked_points_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/locked_points_num"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_card_num"
|
|
|
+ android:backgroundTint="@color/color_ffc9c9"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="2"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="30sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/common_divider_small_space_horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/hardware_in_use_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/hardware_in_use_num"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_card_num"
|
|
|
+ android:backgroundTint="@color/color_a5d8ff"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="2"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="30sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/home_card_bg">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/overview_data_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/home_card_title_bg"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:text="@string/home_overview_data_title"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/overview_data_filter_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@+id/overview_data_title"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="10dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/time_frame_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/start_time"
|
|
|
+ android:layout_width="210dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:textSize="22sp"
|
|
|
+ tools:text="2025-04-01 12:00" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="-"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/end_time"
|
|
|
+ android:layout_width="210dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:textSize="22sp"
|
|
|
+ tools:text="2025-04-01 12:00" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/zone"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/overview_data_zone"
|
|
|
+ android:layout_width="180dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@drawable/icon_drop_down"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:textSize="22sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="80dp"
|
|
|
+ android:layout_below="@+id/overview_data_filter_layout"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:divider="@drawable/common_divider_normal_space_horizontal"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/common_divider_small_space_horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/all_job_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/all_job_num"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_card_num"
|
|
|
+ android:backgroundTint="@color/color_ffec99"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="2"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="30sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/common_divider_small_space_horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/all_points_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/all_points_num"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_card_num"
|
|
|
+ android:backgroundTint="@color/color_ffc9c9"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="2"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="30sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:divider="@drawable/common_divider_small_space_horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:showDividers="middle">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/all_hardware_tv"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/all_hardware_num"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/bg_home_card_num"
|
|
|
+ android:backgroundTint="@color/color_a5d8ff"
|
|
|
+ android:gravity="center"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="2"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="30sp" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
</layout>
|