realtimelocation/app/src/main/res/layout/activity_work_sign.xml

207 lines
7.5 KiB
XML
Raw Normal View History

2023-03-24 18:03:20 +08:00
<?xml version="1.0" encoding="utf-8"?>
2023-11-03 10:12:41 +08:00
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2023-03-24 18:03:20 +08:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2023-10-30 18:03:42 +08:00
android:background="@color/gray_fa"
2023-11-03 10:12:41 +08:00
android:orientation="vertical">
2023-03-24 18:03:20 +08:00
2023-11-03 10:12:41 +08:00
<com.baidu.mapapi.map.TextureMapView
android:id="@+id/tmv_map"
2023-10-30 18:03:42 +08:00
android:layout_width="match_parent"
2023-11-03 10:12:41 +08:00
android:layout_height="match_parent" />
2023-10-30 18:03:42 +08:00
<LinearLayout
android:layout_width="match_parent"
2023-11-03 10:12:41 +08:00
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="vertical">
2023-10-30 18:03:42 +08:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-11-03 10:12:41 +08:00
android:background="@color/white"
android:gravity="center"
2023-10-30 18:03:42 +08:00
android:orientation="horizontal"
2023-11-03 10:12:41 +08:00
android:padding="5dp">
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<ImageView
android:id="@+id/iv_user_icon"
android:layout_width="50dp"
android:layout_height="50dp"
tools:src="@drawable/ic_user_default" />
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<LinearLayout
2023-10-30 18:03:42 +08:00
android:layout_width="0dp"
2023-11-03 10:12:41 +08:00
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
2023-10-30 18:03:42 +08:00
android:layout_weight="1"
2023-11-03 10:12:41 +08:00
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_user_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textSize="18sp"
tools:text="姓名" />
<TextView
android:id="@+id/tv_user_department"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
tools:text="部门职位" />
</LinearLayout>
2023-10-30 18:03:42 +08:00
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2023-11-03 10:12:41 +08:00
android:layout_marginTop="5dp"
android:background="@drawable/shape_rectangle_white"
android:gravity="center|top"
android:orientation="vertical"
android:padding="10dp">
2023-10-30 18:03:42 +08:00
<TextView
2023-11-03 10:12:41 +08:00
android:id="@+id/tv_cur_time"
android:layout_width="match_parent"
2023-10-30 18:03:42 +08:00
android:layout_height="wrap_content"
android:textColor="@color/black"
2023-11-03 10:12:41 +08:00
android:textSize="@dimen/text_15"
tools:text="2022年12月12日23:23:23" />
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<View
2023-10-30 18:03:42 +08:00
android:layout_width="match_parent"
2023-11-03 10:12:41 +08:00
android:layout_height="1dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:background="@color/gray_ef" />
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="8dp">
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="签到时间区间:"
android:textColor="@color/black"
android:textSize="@dimen/text_14" />
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<TextView
android:id="@+id/tv_in_time"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_weight="1"
android:textSize="14dp"
tools:text="23:00:00-24:00:00" />
<ImageView
android:id="@+id/iv_sign_in_state"
android:layout_width="20dp"
android:layout_height="20dp"
tools:src="@drawable/ic_sign_late" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="8dp"
android:paddingRight="8dp">
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<TextView
2023-10-30 18:03:42 +08:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2023-11-03 10:12:41 +08:00
android:text="签退时间区间:"
android:textColor="@color/black"
android:textSize="14dp" />
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<TextView
android:id="@+id/tv_out_time"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_weight="1"
android:textSize="14dp"
tools:text="23:00:00-24:00:00" />
<ImageView
android:id="@+id/iv_sign_out_state"
android:layout_width="20dp"
android:layout_height="20dp"
tools:src="@drawable/ic_sign_normal" />
</LinearLayout>
2023-10-30 18:03:42 +08:00
</LinearLayout>
2023-11-03 10:12:41 +08:00
<TextView
android:id="@+id/tv_cur_location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:background="@drawable/shape_rectangle_white"
android:drawableLeft="@drawable/ic_location_blue"
2023-10-30 18:03:42 +08:00
android:gravity="center"
2023-11-03 10:12:41 +08:00
android:padding="10dp"
android:text="正在定位中..." />
</LinearLayout>
2023-10-30 18:03:42 +08:00
2023-11-03 10:12:41 +08:00
<Button
android:id="@+id/btn_reset_loc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="15dp"
android:layout_marginBottom="15dp"
android:background="@drawable/bm_btn_background"
android:minWidth="0dp"
android:minHeight="0dp"
android:visibility="visible" />
2023-10-30 18:03:42 +08:00
2023-11-06 09:09:18 +08:00
<RelativeLayout
2023-11-03 10:12:41 +08:00
android:id="@+id/ll_sign"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="20dp"
android:background="@drawable/sel_cir_btn_blue_gray"
android:clickable="true"
android:focusable="true"
android:gravity="center"
android:orientation="vertical"
android:padding="5dp">
<ImageView
android:id="@+id/iv_state"
android:layout_width="wrap_content"
2023-11-06 09:09:18 +08:00
android:src="@drawable/ic_reload_refresh"
android:layout_centerInParent="true"
2023-11-03 10:12:41 +08:00
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tv_state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="@color/white"
android:textSize="16sp"
tools:text="今日完成" />
2023-10-30 18:03:42 +08:00
2023-11-06 09:09:18 +08:00
</RelativeLayout>
2023-11-03 10:12:41 +08:00
</RelativeLayout>