|
|
@@ -1,28 +1,54 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- android:layout_width="@dimen/dialog_tip_width"
|
|
|
- android:layout_height="@dimen/dialog_tip_height">
|
|
|
+<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:cardCornerRadius="@dimen/common_radius">
|
|
|
|
|
|
- <TextView
|
|
|
- style="@style/CommonTextView"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:text="@string/action_confirm" />
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="@dimen/dialog_tip_width"
|
|
|
+ android:layout_height="@dimen/dialog_tip_height">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_tip"
|
|
|
- style="@style/CommonTextView" />
|
|
|
+ <TextView
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:background="@color/main_color"
|
|
|
+ android:gravity="left"
|
|
|
+ android:paddingVertical="5dp"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:text="@string/action_confirm" />
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_cancel"
|
|
|
- style="@style/CommonBtn"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:text="@string/cancel" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_tip"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_confirm"
|
|
|
- style="@style/CommonBtn"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_toLeftOf="@id/btn_cancel"
|
|
|
- android:text="@string/confirm" />
|
|
|
-</RelativeLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginBottom="@dimen/common_padding"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_confirm"
|
|
|
+ style="@style/CommonBtnBlue"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="25dp"
|
|
|
+ android:backgroundTint="#E600AE00"
|
|
|
+ android:text="@string/confirm" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_cancel"
|
|
|
+ style="@style/CommonBtnBlue"
|
|
|
+ android:layout_width="80dp"
|
|
|
+ android:layout_height="25dp"
|
|
|
+ android:layout_marginLeft="@dimen/common_padding"
|
|
|
+ android:backgroundTint="#99FF0000"
|
|
|
+ android:text="@string/cancel" />
|
|
|
+ </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+</androidx.cardview.widget.CardView>
|