|
@@ -6,87 +6,174 @@
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
tools:context=".view.fragment.WorkerFragment">
|
|
tools:context=".view.fragment.WorkerFragment">
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_title"
|
|
|
|
|
- style="@style/CommonTextView" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_worker"
|
|
|
|
|
- style="@style/CommonTextView"
|
|
|
|
|
- android:layout_alignParentRight="true" />
|
|
|
|
|
-
|
|
|
|
|
- <ImageView
|
|
|
|
|
- android:id="@+id/iv_worker"
|
|
|
|
|
|
|
+ <com.grkj.iscs.view.widget.CommonBtn
|
|
|
|
|
+ android:id="@+id/cb_back"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_toLeftOf="@id/tv_worker" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_lock"
|
|
|
|
|
- style="@style/CommonTextView"
|
|
|
|
|
- android:layout_toLeftOf="@id/iv_worker" />
|
|
|
|
|
-
|
|
|
|
|
- <ImageView
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_toLeftOf="@id/tv_lock" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_confirm"
|
|
|
|
|
- style="@style/CommonBtn"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentBottom="true"
|
|
|
- android:text="@string/confirm" />
|
|
|
|
|
|
|
+ app:btn_bg="@drawable/common_btn_blue_bg"
|
|
|
|
|
+ app:btn_icon="@mipmap/go_back"
|
|
|
|
|
+ app:btn_name="@string/back" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_cancel"
|
|
|
|
|
- style="@style/CommonBtn"
|
|
|
|
|
|
|
+ <com.grkj.iscs.view.widget.CommonBtn
|
|
|
|
|
+ android:id="@+id/cb_cancel"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentBottom="true"
|
|
|
- android:layout_toLeftOf="@id/tv_confirm"
|
|
|
|
|
- android:text="@string/cancel" />
|
|
|
|
|
|
|
+ android:layout_marginRight="@dimen/common_padding"
|
|
|
|
|
+ android:layout_toLeftOf="@id/cb_back"
|
|
|
|
|
+ app:btn_bg="@drawable/common_btn_red_bg"
|
|
|
|
|
+ app:btn_icon="@mipmap/stop"
|
|
|
|
|
+ app:btn_name="@string/cancel_the_job" />
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_above="@id/tv_cancel"
|
|
|
|
|
- android:layout_below="@id/tv_title"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
|
|
+ android:layout_above="@id/cb_cancel"
|
|
|
|
|
+ android:background="@drawable/item_rv_technology_sop_bg_normal"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:padding="@dimen/common_padding">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_title"
|
|
|
|
|
+ style="@style/CommonTextView"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:orientation="vertical">
|
|
|
|
|
|
|
+ android:id="@+id/ll_detail"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/iv_worker"
|
|
|
|
|
+ android:layout_width="@dimen/common_icon_size_small"
|
|
|
|
|
+ android:layout_height="@dimen/common_icon_size_small"
|
|
|
|
|
+ android:src="@mipmap/ticket_worker" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_worker"
|
|
|
|
|
+ style="@style/CommonTextView" />
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/iv_lock"
|
|
|
|
|
+ android:layout_width="@dimen/common_icon_size_small"
|
|
|
|
|
+ android:layout_height="@dimen/common_icon_size_small"
|
|
|
|
|
+ android:src="@mipmap/ticket_lock" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_lock"
|
|
|
|
|
+ style="@style/CommonTextView" />
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:id="@+id/ll_selected"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_marginRight="@dimen/common_padding"
|
|
|
|
|
+ android:background="@drawable/item_rv_technology_sop_bg_normal"
|
|
|
|
|
+ android:gravity="center_horizontal"
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
|
+ android:padding="5dp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintHorizontal_weight="300"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/ll_list"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_title">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 上锁人 -->
|
|
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <TextView style="@style/CommonTextView" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_select_locker"
|
|
|
|
|
- style="@style/CommonBtn" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginBottom="@dimen/common_padding"
|
|
|
|
|
+ app:cardBackgroundColor="@color/common_bg_white_10"
|
|
|
|
|
+ app:cardCornerRadius="@dimen/common_radius"
|
|
|
|
|
+ app:cardElevation="0dp"
|
|
|
|
|
+ app:strokeColor="@color/common_transparent">
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:padding="2dp">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_locker"
|
|
|
|
|
+ style="@style/CommonTextView"
|
|
|
|
|
+ android:paddingHorizontal="5dp"
|
|
|
|
|
+ android:paddingVertical="3dp"
|
|
|
|
|
+ android:text="@string/locker"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size_small"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/tv_locker_select"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_locker_select"
|
|
|
|
|
+ style="@style/CommonTextView"
|
|
|
|
|
+ android:background="@drawable/select_btn_bg"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_padding"
|
|
|
|
|
+ android:paddingVertical="3dp"
|
|
|
|
|
+ android:text="@string/select"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size_small"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/tv_locker"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<include
|
|
<include
|
|
|
android:id="@+id/layout_locker"
|
|
android:id="@+id/layout_locker"
|
|
|
layout="@layout/item_rv_worker" />
|
|
layout="@layout/item_rv_worker" />
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
|
+ <!-- 共锁人 -->
|
|
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <TextView style="@style/CommonTextView" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_select_colocker"
|
|
|
|
|
- style="@style/CommonBtn" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="@dimen/common_padding"
|
|
|
|
|
+ app:cardBackgroundColor="@color/common_bg_white_10"
|
|
|
|
|
+ app:cardCornerRadius="@dimen/common_radius"
|
|
|
|
|
+ app:cardElevation="0dp"
|
|
|
|
|
+ app:strokeColor="@color/common_transparent">
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:padding="2dp">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_colocker"
|
|
|
|
|
+ style="@style/CommonTextView"
|
|
|
|
|
+ android:paddingHorizontal="5dp"
|
|
|
|
|
+ android:paddingVertical="3dp"
|
|
|
|
|
+ android:text="@string/colocker"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size_small"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/tv_colocker_select"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_colocker_select"
|
|
|
|
|
+ style="@style/CommonTextView"
|
|
|
|
|
+ android:background="@drawable/select_btn_bg"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_padding"
|
|
|
|
|
+ android:paddingVertical="3dp"
|
|
|
|
|
+ android:text="@string/select"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size_small"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/tv_colocker"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/rv_worker_selected"
|
|
android:id="@+id/rv_worker_selected"
|
|
@@ -96,10 +183,16 @@
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
|
+ android:id="@+id/ll_list"
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:layout_weight="3"
|
|
|
|
|
- android:orientation="vertical">
|
|
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:background="@drawable/item_rv_technology_sop_bg_normal"
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintHorizontal_weight="1150"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/ll_selected"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/ll_selected">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/rv_worker_list"
|
|
android:id="@+id/rv_worker_list"
|
|
@@ -107,5 +200,5 @@
|
|
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
|
|
app:spanCount="10" />
|
|
app:spanCount="10" />
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|