<?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:orientation="vertical"
|
android:layout_width="match_parent"
|
android:id="@+id/rl_content"
|
android:layout_height="match_parent">
|
|
<com.amap.api.maps.MapView
|
android:id="@+id/mv_main"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_alignParentStart="true"
|
android:layout_alignParentTop="true"
|
android:layout_marginBottom="20dp" />
|
|
<TextView
|
android:id="@+id/scene_status"
|
android:visibility="gone"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="230dp"
|
android:background="@drawable/shape_yellow"
|
android:drawableStart="@drawable/ic_group_black_24dp"
|
android:drawableTint="@color/white"
|
android:elevation="@dimen/dimen4"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:gravity="center"
|
android:padding="@dimen/dimen4"
|
android:text="@string/scene_status"
|
android:textColor="@color/white"
|
tools:ignore="UnusedAttribute" />
|
|
<TextView
|
android:id="@+id/scene_detail"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="230dp"
|
android:background="@drawable/shape_yellow"
|
android:drawableStart="@drawable/ic_info_black_24dp"
|
android:drawableTint="@color/white"
|
android:elevation="@dimen/dimen4"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:gravity="center"
|
android:padding="@dimen/dimen4"
|
android:text="点位情况"
|
android:textColor="@color/white"
|
tools:ignore="UnusedAttribute" />
|
|
<TextView
|
android:id="@+id/user_account"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="188dp"
|
android:background="@drawable/shape_green"
|
android:drawableStart="@drawable/ic_group_black_24dp"
|
android:drawableTint="@color/white"
|
android:elevation="@dimen/dimen4"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:gravity="center"
|
android:padding="@dimen/dimen4"
|
android:text="用户账号"
|
android:textColor="@color/white"
|
tools:ignore="UnusedAttribute" />
|
|
<LinearLayout
|
android:visibility="visible"
|
android:id="@+id/ll_patrol_icons"
|
android:layout_width="match_parent"
|
android:layout_height="180dp"
|
android:layout_alignParentBottom="true"
|
android:background="@drawable/shap_stroke_top"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:id="@+id/ll_patrol_hide"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:clickable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:gravity="center">
|
|
<ImageView
|
android:id="@+id/imageView5"
|
android:layout_width="36dp"
|
android:layout_height="20dp"
|
android:layout_marginBottom="1dp"
|
android:layout_marginTop="3dp"
|
android:padding="3dp"
|
android:scaleType="fitXY"
|
android:src="@drawable/icon_hide" />
|
</LinearLayout>
|
|
<android.support.v4.view.ViewPager
|
android:id="@+id/vp_patrol_icons"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_weight="2">
|
</android.support.v4.view.ViewPager>
|
<ImageView
|
android:id="@+id/iv_patrol_pointer"
|
android:layout_width="20dp"
|
android:layout_height="20dp"
|
android:adjustViewBounds="true"
|
android:src="@drawable/select_first_point"
|
android:layout_gravity="center_horizontal"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/ll_patrol_show"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:clickable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:layout_alignParentBottom="true"
|
android:background="@drawable/shap_stroke_top"
|
android:gravity="center_horizontal">
|
<ImageView
|
android:src="@drawable/icon_hide"
|
android:layout_width="36dp"
|
android:rotation="180"
|
android:layout_height="20dp"
|
android:padding="3dp"
|
android:scaleType="fitXY"
|
android:layout_gravity="center"/>
|
</LinearLayout>
|
|
<RelativeLayout
|
android:visibility="visible"
|
android:elevation="1dp"
|
android:id="@+id/ln_patrol_subtask_detail"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/colorPrimary"
|
|
android:layout_alignParentTop="true"
|
android:layout_alignParentStart="true">
|
|
<LinearLayout
|
android:id="@+id/ll_show_hide_detail"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingTop="8dp"
|
android:paddingBottom="7dp"
|
android:clickable="true"
|
android:background="?android:attr/selectableItemBackground"
|
android:gravity="center">
|
<TextView
|
android:layout_marginLeft="50dp"
|
android:layout_marginRight="50dp"
|
android:id="@+id/tv_subtask_name_bar"
|
android:layout_width="wrap_content"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:singleLine="true"
|
android:layout_height="wrap_content"
|
android:textSize="16sp"
|
android:text="任务名称"/>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginTop="-1dp"
|
android:layout_marginLeft="50dp"
|
android:gravity="center_vertical"
|
android:layout_marginRight="50dp">
|
<TextView
|
android:id="@+id/tv_subtask_status_bar"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true"
|
android:textSize="13dp"
|
android:text="任务状态"
|
android:textColor="@color/white"/>
|
<ImageView
|
android:alpha="0.9"
|
android:layout_marginLeft="2dp"
|
android:layout_marginTop="1dp"
|
android:id="@+id/iv_patrol_show_site_detail"
|
android:src="@drawable/selector_show_hide_white"
|
android:layout_width="14dp"
|
android:layout_height="13dp"
|
android:scaleType="fitXY" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
<ImageView
|
android:id="@+id/iv_patrol_back"
|
android:layout_width="45dp"
|
android:paddingLeft="18dp"
|
android:paddingTop="9dp"
|
android:paddingRight="9dp"
|
android:paddingBottom="9dp"
|
android:clickable="true"
|
android:layout_height="36dp"
|
android:layout_centerVertical="true"
|
android:scaleType="fitXY"
|
android:src="@drawable/icon_back_white"/>
|
<ImageView
|
android:alpha="0.9"
|
android:layout_width="50dp"
|
android:layout_height="40dp"
|
android:paddingRight="16dp"
|
android:paddingTop="6dp"
|
android:paddingBottom="6dp"
|
android:paddingLeft="6dp"
|
android:layout_centerVertical="true"
|
android:src="@drawable/selector_start_end_task"
|
android:layout_alignParentRight="true"
|
android:id="@+id/iv_start_end_task" />
|
</RelativeLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_patrol_task_detail"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_below="@+id/ln_patrol_subtask_detail"
|
android:layout_alignParentStart="true"
|
android:background="@drawable/shap_stroke_bottom"
|
android:orientation="vertical"
|
android:paddingTop="12dp"
|
android:paddingBottom="14dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="16dp"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/textView3"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/task_name2" />
|
|
<TextView
|
android:id="@+id/tv_subtask_name"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
|
<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/task_type2" />
|
|
<TextView
|
android:id="@+id/tv_subtask_type"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/textView"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/task_plan_time" />
|
|
<TextView
|
android:id="@+id/tv_subtask_plan_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<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/task_execute_time" />
|
|
<TextView
|
android:id="@+id/tv_subtask_execute_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<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/task_executors" />
|
|
<TextView
|
android:id="@+id/tv_subtask_executors"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="16dp"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="16dp"
|
android:text="@string/scense_name" />
|
|
<TextView
|
android:id="@+id/tv_scense_name"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
|
<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:layout_marginLeft="16dp"
|
android:text="@string/scense_type" />
|
|
<TextView
|
android:id="@+id/tv_scense_type"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<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:layout_marginLeft="16dp"
|
android:text="@string/scense_address" />
|
|
<TextView
|
android:id="@+id/tv_scense_address"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="16dp"
|
android:layout_marginTop="4dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="联系人 1:" />
|
|
<TextView
|
android:id="@+id/tv_scense_contact1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="" />
|
|
<TextView
|
android:id="@+id/tv_call_contact1"
|
android:layout_width="30dp"
|
android:layout_height="30dp"
|
android:layout_marginRight="16dp"
|
android:background="@drawable/contactcompany"
|
android:text=""
|
android:textColor="@color/colorPrimary" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="16dp"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="联系人 2:" />
|
|
<TextView
|
android:id="@+id/tv_scense_contact2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="" />
|
|
<TextView
|
android:id="@+id/tv_call_contact2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:paddingLeft="9dp"
|
android:paddingRight="25dp"
|
android:text="打电话"
|
android:textColor="@color/colorPrimary" />
|
</LinearLayout>
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|