realtimelocation/app/src/main/res/layout/activity_work_sign.xml
2024-02-22 10:24:47 +08:00

221 lines
8.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray_fa"
android:orientation="vertical">
<com.baidu.mapapi.map.TextureMapView
android:id="@+id/tmv_map"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:gravity="center"
android:orientation="horizontal"
android:padding="5dp">
<ImageView
android:id="@+id/iv_user_icon"
android:layout_width="50dp"
android:layout_height="50dp"
tools:src="@drawable/ic_user_default" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:layout_weight="1"
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>
<Button
android:id="@+id/btn_sign_record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/sel_btn_submit"
android:minWidth="0dp"
android:minHeight="0dp"
android:paddingLeft="15dp"
android:paddingTop="5dp"
android:paddingRight="15dp"
android:paddingBottom="5dp"
android:text="记录"
android:textColor="@color/col_white_black" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:background="@drawable/shape_rectangle_white"
android:gravity="center|top"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/tv_cur_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textSize="@dimen/text_15"
tools:text="2022年12月12日23:23:23" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:background="@color/gray_ef" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="8dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="签到时间区间:"
android:textColor="@color/black"
android:textSize="@dimen/text_14" />
<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">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="签退时间区间:"
android:textColor="@color/black"
android:textSize="14dp" />
<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>
</LinearLayout>
<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"
android:gravity="center"
android:padding="10dp"
android:text="正在定位中..." />
</LinearLayout>
<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" />
<RelativeLayout
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"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/ic_reload_refresh" />
<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="今日完成" />
</RelativeLayout>
</RelativeLayout>