|
|
@@ -1,5 +1,6 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -28,8 +29,8 @@
|
|
|
android:layout_weight="1"
|
|
|
android:text="@string/create_sop_job_title"
|
|
|
android:textColor="@color/black"
|
|
|
- android:textStyle="bold"
|
|
|
- android:textSize="@dimen/normal_text_size_25" />
|
|
|
+ android:textSize="@dimen/normal_text_size_25"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/back"
|
|
|
@@ -89,105 +90,102 @@
|
|
|
android:layout_height="@dimen/divider_line_space"
|
|
|
android:background="@color/black" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:paddingHorizontal="@dimen/dialog_content_normal_padding_horizontal"
|
|
|
+ android:paddingBottom="@dimen/common_spacing">
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sop_workstation_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="@dimen/common_spacing"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingHorizontal="@dimen/dialog_content_normal_padding_horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/sop_workstation"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
+ android:text="@string/sop_workstation"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/workstation_tv"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:drawableRight="@mipmap/icon_drop_down"
|
|
|
- android:hint="@string/please_select_sop_workstation"
|
|
|
- android:maxLines="1"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
- android:singleLine="true"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
- </LinearLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/workstation_tv"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@mipmap/icon_drop_down"
|
|
|
+ android:hint="@string/please_select_sop_workstation"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/sop_workstation_tv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/sop_workstation_tv"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/sop_workstation_tv" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sop_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="36dp"
|
|
|
android:layout_marginTop="@dimen/common_spacing"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingHorizontal="@dimen/dialog_content_normal_padding_horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/create_sop_job_sop"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
+ android:text="@string/create_sop_job_sop"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/sop_workstation_tv"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/sop_workstation_tv" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/sop_tv"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:drawableRight="@mipmap/icon_drop_down"
|
|
|
- android:hint="@string/please_select_sop"
|
|
|
- android:maxLines="1"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
- android:singleLine="true"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
- </LinearLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sop_tv"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:drawableRight="@mipmap/icon_drop_down"
|
|
|
+ android:hint="@string/please_select_sop"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/sop_title"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/sop_title"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/sop_title" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/job_name_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="@dimen/common_spacing"
|
|
|
- android:layout_marginBottom="@dimen/common_spacing"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingHorizontal="@dimen/dialog_content_normal_padding_horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/job_name"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
+ android:text="@string/job_name"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/sop_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/sop_title" />
|
|
|
|
|
|
- <EditText
|
|
|
- android:id="@+id/job_name_et"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/common_spacing"
|
|
|
- android:background="@drawable/bg_common_input"
|
|
|
- android:hint="@string/please_input_job_name"
|
|
|
- android:maxLines="1"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing"
|
|
|
- android:paddingVertical="2dp"
|
|
|
- android:singleLine="true"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/common_text_size" />
|
|
|
- </LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/job_name_et"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
+ android:hint="@string/please_input_job_name"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/job_name_tv"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/job_name_tv"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/job_name_tv" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
@@ -239,8 +237,8 @@
|
|
|
android:id="@+id/workflow_rv"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:scrollbars="horizontal"
|
|
|
- android:paddingHorizontal="@dimen/common_spacing" />
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
+ android:scrollbars="horizontal" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/select_workflow_tip"
|