|
|
@@ -1,17 +1,222 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<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:gravity="center_horizontal"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="20dp"
|
|
|
tools:context=".view.fragment.TechnologySopFragment">
|
|
|
|
|
|
+ <!-- 选择工艺流程 -->
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:id="@+id/sop_header"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ app:cardBackgroundColor="#11000000"
|
|
|
+ app:strokeColor="#23FFFFFF"
|
|
|
+ app:strokeWidth="2dp">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="20dp"
|
|
|
+ android:paddingVertical="15dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:text="选择工艺SOP"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
+
|
|
|
+ <!-- SOP选择 -->
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="start"
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:text="请选择工艺/设备"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ app:cardBackgroundColor="#11000000"
|
|
|
+ app:strokeColor="#23FFFFFF"
|
|
|
+ app:strokeWidth="2dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_positon"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="岗位"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="16sp" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="2dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#23FFFFFF" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_job_name"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="3"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="⼯艺/设备名称"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="16sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="#23FFFFFF" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/sop_list"
|
|
|
+ style="@style/CommonRecyclerView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
+
|
|
|
+ <!-- SOP信息 -->
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="start"
|
|
|
+ android:layout_marginLeft="5dp"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:text="请选择SOP"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="15sp" />
|
|
|
+
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:id="@+id/sop_info"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="300dp"
|
|
|
+ app:cardBackgroundColor="#11000000"
|
|
|
+ app:strokeColor="#23FFFFFF"
|
|
|
+ app:strokeWidth="2dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_machinery"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:padding="20dp" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="2dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#23FFFFFF" />
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ style="@style/CommonRecyclerView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="1" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
+
|
|
|
+ <!-- 底部功能按键 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_fun"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@id/sop_info"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/tv_start_sop"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:background="@drawable/common_btn_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingHorizontal="10dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="28dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:src="@mipmap/start"
|
|
|
+ android:tint="@color/white" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:text="@string/start_the_job"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_back"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="@drawable/common_btn_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:minWidth="130dp"
|
|
|
+ android:text="@string/back"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
<com.grkj.iscs_mars.view.widget.CommonBtn
|
|
|
android:id="@+id/cb_start"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_alignParentRight="true"
|
|
|
android:layout_alignParentBottom="true"
|
|
|
+ android:visibility="gone"
|
|
|
app:btn_bg="@drawable/common_btn_blue_bg"
|
|
|
app:btn_icon="@mipmap/start"
|
|
|
app:btn_name="@string/start_the_job" />
|
|
|
@@ -21,10 +226,11 @@
|
|
|
style="@style/CommonBtnBlue"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_alignParentBottom="true"
|
|
|
+ android:layout_marginRight="@dimen/common_spacing"
|
|
|
android:layout_toLeftOf="@id/cb_start"
|
|
|
android:gravity="left|center_vertical"
|
|
|
android:text="@string/current_sop"
|
|
|
- android:layout_marginRight="@dimen/common_spacing"/>
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -33,7 +239,8 @@
|
|
|
android:layout_marginBottom="@dimen/common_spacing"
|
|
|
android:background="@drawable/item_rv_technology_sop_bg_normal"
|
|
|
android:orientation="vertical"
|
|
|
- android:padding="@dimen/common_spacing">
|
|
|
+ android:padding="@dimen/common_spacing"
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_title"
|
|
|
@@ -46,4 +253,5 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="horizontal" />
|
|
|
</LinearLayout>
|
|
|
-</RelativeLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|