<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
<data>
|
|
<variable
|
name="activity"
|
type="com.dayu.pipirrapp.fragment.OrderFragment" />
|
|
</data>
|
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
|
<TextView
|
android:id="@+id/title"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/title_height"
|
android:background="@color/title_color"
|
android:gravity="center"
|
android:text="工单"
|
android:textColor="@color/white"
|
android:textSize="@dimen/title_center_text_size" />
|
|
<LinearLayout
|
android:id="@+id/manage_choose_ll"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/title_choose_height"
|
android:layout_below="@+id/title"
|
android:background="@color/title_choose_bg"
|
android:orientation="horizontal"
|
android:paddingTop="10dp"
|
android:paddingBottom="10dp"
|
android:visibility="gone">
|
|
<RelativeLayout
|
android:id="@+id/choose_manage_rl"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_weight="1"
|
android:background="@drawable/ic_choose_bg_whit"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/choose_manage_name"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_toStartOf="@+id/choose_xiangmu_right"
|
android:gravity="center"
|
android:text="全部项目"
|
android:textColor="@color/choose_grey"
|
android:textSize="@dimen/top_choose_text_size" />
|
|
<ImageView
|
android:id="@+id/choose_xiangmu_right"
|
android:layout_width="15dp"
|
android:layout_height="15dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_marginRight="8dp"
|
android:src="@mipmap/icon_bottom" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/choose_pianqu_rl"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="5dp"
|
android:layout_marginRight="5dp"
|
|
android:layout_weight="1"
|
android:background="@drawable/ic_choose_bg_whit"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/choose_pianqu_name"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_toStartOf="@+id/choose_pianqu_right"
|
android:gravity="center"
|
android:text="全部片区"
|
android:textColor="@color/choose_grey"
|
android:textSize="@dimen/top_choose_text_size" />
|
|
<ImageView
|
android:id="@+id/choose_pianqu_right"
|
android:layout_width="15dp"
|
android:layout_height="15dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_marginRight="8dp"
|
android:src="@mipmap/icon_bottom" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/choose_project_rl"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_weight="1"
|
android:background="@drawable/ic_choose_bg_whit"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/choose_project_name"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_toStartOf="@+id/choose_project_right"
|
android:gravity="center"
|
android:text="全部工程"
|
android:textColor="@color/choose_grey"
|
android:textSize="@dimen/top_choose_text_size" />
|
|
<ImageView
|
android:id="@+id/choose_project_right"
|
android:layout_width="15dp"
|
android:layout_height="15dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
android:layout_marginRight="8dp"
|
android:src="@mipmap/icon_bottom" />
|
</RelativeLayout>
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:id="@+id/manage_state_ll"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/top_state_height"
|
android:layout_below="@+id/manage_choose_ll"
|
android:layout_margin="10dp"
|
android:background="@drawable/top_state_bg"
|
android:orientation="horizontal">
|
|
<RelativeLayout
|
android:id="@+id/manage_state_progressRL"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_margin="5dp"
|
android:layout_weight="1"
|
android:background="@drawable/ic_choose_bg_whit">
|
|
<TextView
|
android:id="@+id/manage_state_progress"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_centerHorizontal="true"
|
android:layout_centerVertical="true"
|
android:gravity="center"
|
android:text="未完成"
|
android:textColor="@color/title_color"
|
android:textSize="@dimen/top_state_text_size"
|
android:textStyle="bold" />
|
|
<ImageView
|
android:id="@+id/red_dot_img"
|
android:layout_width="9dp"
|
android:layout_height="9dp"
|
android:layout_centerVertical="true"
|
android:layout_marginLeft="5dp"
|
android:layout_toEndOf="@+id/manage_state_progress"
|
android:src="@drawable/ic_red_dot"
|
android:visibility="gone" />
|
</RelativeLayout>
|
|
|
<TextView
|
android:id="@+id/manage_state_finish"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_margin="5dp"
|
android:layout_weight="1"
|
android:gravity="center"
|
android:text="已完成"
|
android:textColor="@color/black"
|
android:textSize="@dimen/top_state_text_size" />
|
|
</LinearLayout>
|
|
<ImageView
|
android:id="@+id/line"
|
android:layout_width="match_parent"
|
android:layout_height="2px"
|
android:layout_below="@+id/manage_state_ll"
|
android:src="@color/line_bg" />
|
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:id="@+id/refreshLayout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@+id/line">
|
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recyclerView"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/item_bg_color"
|
android:overScrollMode="never"
|
android:padding="10dp" />
|
|
<com.scwang.smart.refresh.footer.ClassicsFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:id="@+id/refreshLayoutDone"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@+id/line"
|
android:visibility="gone">
|
|
<com.scwang.smart.refresh.header.ClassicsHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recyclerViewDone"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="#fff"
|
android:overScrollMode="never"
|
android:padding="10dp" />
|
|
<com.scwang.smart.refresh.footer.ClassicsFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
</RelativeLayout>
|
</layout>
|