<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
tools:context="cn.flightfeather.thirdapp.activity.TaskDetailActivity">
|
|
<include
|
android:id="@+id/actionbar"
|
layout="@layout/layout_actionbar"/>
|
|
<com.amap.api.maps.MapView
|
android:id="@+id/mp_task_detail_map"
|
android:layout_width="match_parent"
|
android:layout_height="150dp"
|
/>
|
|
<TextView
|
android:layout_marginTop="6dp"
|
android:layout_marginLeft="16dp"
|
android:textColor="@color/colorPrimary"
|
android:layout_width="match_parent"
|
android:textSize="16dp"
|
android:layout_height="wrap_content"
|
android:text="任务信息"/>
|
<LinearLayout
|
android:layout_marginTop="4dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginLeft="16dp">
|
<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_name"/>
|
<TextView
|
android:id="@+id/tv_subtask_name"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
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_type"/>
|
<TextView
|
android:id="@+id/tv_subtask_type"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
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_status"/>
|
<TextView
|
android:id="@+id/tv_subtask_status"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
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_start_time"/>
|
<TextView
|
android:id="@+id/tv_subtask_start_time"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
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_end_time"/>
|
<TextView
|
android:id="@+id/tv_subtask_end_time"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
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_executors"/>
|
<TextView
|
android:id="@+id/tv_subtask_executors"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
android:layout_height="wrap_content" />
|
</LinearLayout>
|
</LinearLayout>
|
<TextView
|
android:layout_marginTop="6dp"
|
android:layout_marginLeft="16dp"
|
android:textColor="@color/colorPrimary"
|
android:layout_width="match_parent"
|
android:textSize="16dp"
|
android:layout_height="wrap_content"
|
android:text="场景信息"/>
|
<LinearLayout
|
android:layout_marginLeft="16dp"
|
android:layout_marginTop="4dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="场景名称:"/>
|
<TextView
|
android:id="@+id/tv_scense_name"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:singleLine="true"
|
android:text=""/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_marginLeft="16dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="业主单位:"/>
|
<TextView
|
android:id="@+id/tv_scenseowner_company"
|
android:layout_width="wrap_content"
|
android:singleLine="true"
|
android:layout_height="wrap_content"
|
android:text=""/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_marginLeft="16dp"
|
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="联系人1:"/>
|
<TextView
|
android:id="@+id/tv_site_contact1"
|
android:layout_weight="1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text=""/>
|
<TextView
|
android:id="@+id/tv_site_call_contact1"
|
android:layout_width="wrap_content"
|
android:paddingLeft="9dp"
|
android:paddingRight="25dp"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:text="打电话"/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_marginLeft="16dp"
|
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="联系人2:"/>
|
<TextView
|
android:id="@+id/tv_site_contact2"
|
android:layout_weight="1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text=""/>
|
<TextView
|
android:id="@+id/tv_site_call_contact2"
|
android:layout_width="wrap_content"
|
android:paddingLeft="9dp"
|
android:paddingRight="25dp"
|
android:layout_height="wrap_content"
|
android:textColor="@color/colorPrimary"
|
android:text="打电话"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_marginLeft="16dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="地址:"/>
|
<TextView
|
android:id="@+id/tv_site_address"
|
android:singleLine="true"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text=""/>
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<Button
|
android:id="@+id/btn_sense_detail"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="场景详情"/>
|
<Button
|
android:id="@+id/btn_task_detail_guide"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="导航"/>
|
<Button
|
android:id="@+id/btn_task_detail_start_end_task"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="开始任务"/>
|
<Button
|
android:id="@+id/btn_task_detail_change_task"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="调整任务"/>
|
</LinearLayout>
|
</LinearLayout>
|