Prechádzať zdrojové kódy

添加地图组件;添加部分页面控件

Frankensteinly 10 mesiacov pred
rodič
commit
11fdef5356

+ 7 - 2
app/src/main/res/layout/fragment_technology_sop.xml

@@ -1,8 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     tools:context=".view.fragment.TechnologySopFragment">
 
-</FrameLayout>
+    <androidx.recyclerview.widget.RecyclerView
+        android:id="@+id/rv_technology"
+        style="@style/CommonRecyclerView"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal" />
+</RelativeLayout>

+ 13 - 2
app/src/main/res/layout/fragment_workshop.xml

@@ -1,8 +1,19 @@
 <?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
+    android:orientation="vertical"
     tools:context=".view.fragment.WorkshopFragment">
 
-</FrameLayout>
+    <com.onlylemi.mapview.library.MapView
+        android:id="@+id/mapview"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"/>
+
+    <androidx.recyclerview.widget.RecyclerView
+        android:id="@+id/rv"
+        style="@style/CommonRecyclerView"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal" />
+</LinearLayout>

+ 5 - 1
app/src/main/res/layout/item_rv_job_management.xml

@@ -4,7 +4,11 @@
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_margin="@dimen/rv_item_margin"
-    android:orientation="vertical">
+    android:orientation="horizontal">
+
+    <ImageView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"/>
 
     <TextView
         android:id="@+id/tv_number"

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

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-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:orientation="horizontal">
+
+    <ImageView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content" />
+
+    <TextView
+        android:id="@+id/tv_number"
+        style="@style/CommonTextView" />
+</LinearLayout>

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

@@ -107,4 +107,7 @@
     <string name="workshop">车间岗位</string>
     <string name="technology_sop">工艺SOP</string>
     <string name="job_execution">作业执行</string>
+    <string name="repair">维修</string>
+    <string name="pm">PM</string>
+    <string name="clean">清洁</string>
 </resources>