|
@@ -1,42 +1,225 @@
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:paddingBottom="16dp"
|
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_marginLeft="@dimen/d_15dp"
|
|
android:layout_marginLeft="@dimen/d_15dp"
|
|
android:layout_marginRight="@dimen/d_30dp"
|
|
android:layout_marginRight="@dimen/d_30dp"
|
|
android:layout_marginBottom="@dimen/d_10dp"
|
|
android:layout_marginBottom="@dimen/d_10dp"
|
|
android:background="@drawable/shape_input_bg_round"
|
|
android:background="@drawable/shape_input_bg_round"
|
|
- android:paddingLeft="16dp"
|
|
|
|
- android:paddingRight="16dp"
|
|
|
|
- android:paddingTop="8dp">
|
|
|
|
-
|
|
|
|
- <ImageView
|
|
|
|
- android:id="@+id/img_avatar"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_marginTop="@dimen/d_7dp"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginRight="16dp"
|
|
|
|
- android:src="@drawable/home_export_icon" />
|
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d_23dp"
|
|
|
|
+ android:paddingRight="@dimen/d_13dp">
|
|
|
|
+
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_name"
|
|
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/ll_name_box"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_toRightOf="@id/img_avatar"
|
|
|
|
- tools:text="张三"
|
|
|
|
- android:textColor="@color/white"
|
|
|
|
- android:textSize="16sp" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/tv_mobile"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:paddingTop="@dimen/d_18dp"
|
|
|
|
+ android:paddingBottom="@dimen/d_18dp">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="Name:"
|
|
|
|
+ android:textColor="@color/hint_text"
|
|
|
|
+ android:textSize="14sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_name"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginLeft="@dimen/d_5dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
+ tools:text="张三" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_drop_down"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:src="@drawable/home_down_icon" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/ll_more_box"
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_below="@id/tv_name"
|
|
|
|
- android:layout_marginTop="12dp"
|
|
|
|
- android:layout_toRightOf="@id/img_avatar"
|
|
|
|
- tools:text="18712345678"
|
|
|
|
- android:textColor="@color/white" />
|
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <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="Job Date:"
|
|
|
|
+ android:textColor="@color/hint_text"
|
|
|
|
+ android:textSize="14sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_job_date"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginLeft="@dimen/d_5dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
+ tools:text="2024-06-27" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="@dimen/d_16dp"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="Start Time:"
|
|
|
|
+ android:textColor="@color/hint_text"
|
|
|
|
+ android:textSize="14sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_start_time"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginLeft="@dimen/d_5dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
+ tools:text="09:00" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="@dimen/d_16dp"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="End Time:"
|
|
|
|
+ android:textColor="@color/hint_text"
|
|
|
|
+ android:textSize="14sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_end_time"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginLeft="@dimen/d_5dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
+ tools:text="19:00" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="@dimen/d_18dp"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ android:id="@+id/fl_sign_in_box"
|
|
|
|
+ android:layout_width="@dimen/d_90dp"
|
|
|
|
+ android:layout_height="@dimen/d_35dp"
|
|
|
|
+ android:background="@drawable/shape_sign_blue_bg">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_in"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:layout_width="71.5dp"
|
|
|
|
+ android:layout_height="25dp"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_in"
|
|
|
|
+ android:text="Check In"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:fontFamily="sans-serif-medium"
|
|
|
|
+ android:textSize="@dimen/d_14sp"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
+
|
|
|
|
+ </FrameLayout>
|
|
|
|
+
|
|
|
|
+ <FrameLayout
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/fl_sign_in_box"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ android:id="@+id/fl_sign_out_box"
|
|
|
|
+ android:layout_width="@dimen/d_90dp"
|
|
|
|
+ android:layout_height="@dimen/d_35dp"
|
|
|
|
+ android:layout_marginLeft="@dimen/d_10dp"
|
|
|
|
+ android:background="@drawable/shape_sign_green_bg">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/iv_out"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:layout_width="71.5dp"
|
|
|
|
+ android:layout_height="25dp"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_out"
|
|
|
|
+ android:text="Check Out"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
+ android:fontFamily="sans-serif-medium"
|
|
|
|
+ android:textSize="@dimen/d_14sp"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
+
|
|
|
|
+ </FrameLayout>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_in_time"
|
|
|
|
+ android:layout_marginTop="@dimen/d_8dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/fl_sign_in_box"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/fl_sign_in_box"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@id/fl_sign_in_box"
|
|
|
|
+ android:textSize="@dimen/d_14sp"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ tools:text="08:50"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/tv_out_time"
|
|
|
|
+ android:layout_marginTop="@dimen/d_8dp"
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/fl_sign_out_box"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/fl_sign_out_box"
|
|
|
|
+ app:layout_constraintRight_toRightOf="@id/fl_sign_out_box"
|
|
|
|
+ android:textSize="@dimen/d_14sp"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ tools:text="08:50"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <View
|
|
|
|
+ android:layout_width="1dp"
|
|
|
|
+ android:layout_height="20dp"/>
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
|
|
|
+</LinearLayout>
|