فهرست منبع

工艺SOP页补充部分控件和布局

Frankensteinly 10 ماه پیش
والد
کامیت
238f34dac1

+ 9 - 3
app/src/main/res/layout/item_rv_technology_sop.xml

@@ -2,9 +2,8 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/root"
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
-    android:layout_margin="@dimen/rv_item_margin"
+    android:layout_width="@dimen/item_rv_technology_width"
+    android:layout_height="@dimen/item_rv_technology_height"
     android:orientation="horizontal">
 
     <ImageView
@@ -14,4 +13,11 @@
     <TextView
         android:id="@+id/tv_number"
         style="@style/CommonTextView" />
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:id="@+id/rv_type"
+        style="@style/CommonRecyclerView"
+        android:layout_height="wrap_content"
+        app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+        app:spanCount="2"/>
 </LinearLayout>

+ 17 - 0
app/src/main/res/layout/item_rv_technology_sop_type.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/root"
+    android:layout_width="@dimen/item_rv_technology_type_width"
+    android:layout_height="@dimen/item_rv_technology_type_height"
+    android:orientation="horizontal"
+    android:padding="@dimen/item_rv_technology_type_padding">
+
+    <ImageView
+        android:id="@+id/iv_type"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content" />
+
+    <TextView
+        android:id="@+id/tv_type"
+        style="@style/CommonTextView" />
+</LinearLayout>

+ 5 - 0
app/src/main/res/values/dimens.xml

@@ -56,4 +56,9 @@
     <dimen name="divider_line_width">1dp</dimen>
     <dimen name="divider_line_margin">3dp</dimen>
     <dimen name="fragment_padding">20dp</dimen>
+    <dimen name="item_rv_technology_height">160dp</dimen>
+    <dimen name="item_rv_technology_width">100dp</dimen>
+    <dimen name="item_rv_technology_type_height">20dp</dimen>
+    <dimen name="item_rv_technology_type_width">50dp</dimen>
+    <dimen name="item_rv_technology_type_padding">2dp</dimen>
 </resources>

+ 4 - 0
app/src/main/res/values/strings.xml

@@ -110,4 +110,8 @@
     <string name="repair">维修</string>
     <string name="pm">PM</string>
     <string name="clean">清洁</string>
+    <string name="back">返回</string>
+    <string name="start_the_job">开始作业</string>
+    <string name="finish_the_job">结束作业</string>
+    <string name="cancel_the_job">取消作业</string>
 </resources>