You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
404 lines
15 KiB
XML
404 lines
15 KiB
XML
|
7 months ago
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<LinearLayout 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:orientation="vertical"
|
||
|
|
tools:context=".ui.activity.WeatherActivity">
|
||
|
|
|
||
|
|
<include
|
||
|
|
android:id="@+id/toolbarView"
|
||
|
|
layout="@layout/layout_base" />
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/ll_workTicket"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:background="#cccccc"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_workTicket"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:textColor="@color/colorPrimary"
|
||
|
|
android:gravity="center"
|
||
|
|
android:paddingEnd="20dp"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:text="工作票"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<View
|
||
|
|
android:layout_width="2dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="#aaaaaa" />
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/ll_assiting"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:background="#cccccc"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_assiting"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:textColor="@color/colorPrimary"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:text="辅助工作"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<View
|
||
|
|
android:layout_width="2dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="#aaaaaa" />
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/ll_custom_add"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="40dp"
|
||
|
|
android:background="#cccccc"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_custom_add"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:textColor="@color/colorPrimary"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:text="手动添加"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:paddingStart="5dp"
|
||
|
|
android:paddingEnd="5dp"
|
||
|
|
android:paddingTop="5dp"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center"
|
||
|
|
android:orientation="vertical">
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:minHeight="66px">
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:text="每日作业风险清单" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_time"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:text=""
|
||
|
|
android:textSize="18sp" />
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="80px"
|
||
|
|
android:gravity="center"
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:minHeight="60px">
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_a_desc"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center|right"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="A:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_a"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center_vertical|left"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textColor="#FFA500"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="0" />
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:minHeight="60px">
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_b_desc"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center|right"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="B:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_b"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center_vertical|left"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textColor="#FFA500"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="0" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:minHeight="60px">
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_c1_desc"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center|right"
|
||
|
|
android:layout_weight="1.2"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="C1:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_c1"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="0.8"
|
||
|
|
android:gravity="center_vertical|left"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textColor="#FFA500"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="0" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="80px"
|
||
|
|
android:gravity="center"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:minHeight="60px">
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_c2_desc"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center|right"
|
||
|
|
android:text="C2:"
|
||
|
|
android:textSize="20sp" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_c2"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center_vertical|left"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textColor="#FFA500"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="0" />
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:minHeight="60px">
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_c3_desc"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center|right"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="C3:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_c3"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center_vertical|left"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textColor="#FFA500"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="0" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:minHeight="60px">
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_lowLisk_desc"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:gravity="center|right"
|
||
|
|
android:layout_weight="1.2"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="低风险:" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_lowLisk"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_gravity="center"
|
||
|
|
android:layout_weight="0.8"
|
||
|
|
android:gravity="center_vertical|left"
|
||
|
|
android:layout_marginStart="5dp"
|
||
|
|
android:textColor="#FFA500"
|
||
|
|
android:textSize="20sp"
|
||
|
|
android:text="0" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<include
|
||
|
|
android:id="@+id/item_head"
|
||
|
|
layout="@layout/item_work_risk_list"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_marginStart="10px"
|
||
|
|
android:layout_marginEnd="10px"
|
||
|
|
android:layout_marginTop="5dp"
|
||
|
|
android:layout_height="wrap_content" />
|
||
|
|
<FrameLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_marginStart="10px"
|
||
|
|
android:layout_marginEnd="10px"
|
||
|
|
android:layout_marginBottom="10px"
|
||
|
|
android:layout_weight="1">
|
||
|
|
|
||
|
|
<ListView
|
||
|
|
android:id="@+id/lv"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:divider="#00000000"
|
||
|
|
android:dividerHeight="0px"/>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_nodata"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:textColor="@color/viewfinder_mask"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="暂无数据"/>
|
||
|
|
|
||
|
|
</FrameLayout>
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:background="@color/colorPrimary"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:background="@color/colorPrimary"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_report"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:text="查看报告"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
<View
|
||
|
|
android:layout_width="2dp"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="#aaaaaa" />
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/ll_refresh"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:background="@color/colorPrimary"
|
||
|
|
android:orientation="vertical">
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_refresh"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:text="重新加载列表数据"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|