|
|
@@ -13,38 +13,65 @@
|
|
|
app:bar_icon="@mipmap/material_replacement"
|
|
|
app:bar_title="@string/material_replacement" />
|
|
|
|
|
|
- <com.grkj.iscs_mc.view.widget.CommonBtn
|
|
|
- android:id="@+id/cb_back"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_control"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- app:btn_bg="@drawable/common_btn_blue_bg"
|
|
|
- app:btn_name="@string/back" />
|
|
|
+ android:layout_alignParentBottom="true">
|
|
|
|
|
|
- <com.grkj.iscs_mc.view.widget.CommonBtn
|
|
|
- android:id="@+id/cb_auto_replace"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_marginHorizontal="@dimen/common_spacing"
|
|
|
- android:layout_toLeftOf="@id/cb_back"
|
|
|
- app:btn_bg="@drawable/common_btn_red_bg"
|
|
|
- app:btn_name="@string/auto_replace" />
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_auto_tip"
|
|
|
+ android:layout_width="@dimen/common_icon_size"
|
|
|
+ android:layout_height="@dimen/common_icon_size"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:background="@mipmap/settings"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/cb_back"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/cb_back" />
|
|
|
|
|
|
- <com.grkj.iscs_mc.view.widget.CommonBtn
|
|
|
- android:id="@+id/cb_manual_replace"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_toLeftOf="@id/cb_auto_replace"
|
|
|
- app:btn_bg="@drawable/common_btn_green_bg"
|
|
|
- app:btn_name="@string/manual_replace" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_auto_tip"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing_small"
|
|
|
+ android:text="@string/auto_replacement_tip"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/iv_auto_tip"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <com.grkj.iscs_mc.view.widget.CommonBtn
|
|
|
+ android:id="@+id/cb_back"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:btn_bg="@drawable/common_btn_blue_bg"
|
|
|
+ app:btn_name="@string/back"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent" />
|
|
|
+
|
|
|
+ <com.grkj.iscs_mc.view.widget.CommonBtn
|
|
|
+ android:id="@+id/cb_auto_replace"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="@dimen/common_spacing"
|
|
|
+ app:btn_bg="@drawable/common_btn_red_bg"
|
|
|
+ app:btn_name="@string/auto_replace"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/cb_back" />
|
|
|
+
|
|
|
+ <com.grkj.iscs_mc.view.widget.CommonBtn
|
|
|
+ android:id="@+id/cb_manual_replace"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:btn_bg="@drawable/common_btn_green_bg"
|
|
|
+ app:btn_name="@string/manual_replace"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/cb_auto_replace" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:layout_above="@id/cb_back"
|
|
|
+ android:layout_above="@id/cl_control"
|
|
|
android:layout_below="@id/tb"
|
|
|
android:layout_marginVertical="@dimen/common_spacing"
|
|
|
android:background="@drawable/item_rv_technology_sop_bg_normal">
|
|
|
@@ -52,8 +79,8 @@
|
|
|
<TextView
|
|
|
android:id="@+id/tv_tip"
|
|
|
style="@style/CommonTextView"
|
|
|
- android:text="@string/material_replacement_tip"
|
|
|
- android:layout_centerInParent="true"/>
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:text="@string/material_replacement_tip" />
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/rv_material"
|