手机适配
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="300dp"
|
||||
android:layout_width="@dimen/sw_300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="8dp"
|
||||
app:cardCornerRadius="@dimen/sw_16dp"
|
||||
app:cardElevation="@dimen/sw_8dp"
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<LinearLayout
|
||||
@@ -13,18 +13,18 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/dialog_background"
|
||||
android:padding="24dp">
|
||||
android:padding="@dimen/sw_24dp">
|
||||
|
||||
<!-- 标题 -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/detail_purchase_confirm"
|
||||
android:textSize="18sp"
|
||||
android:textSize="@dimen/sw_18sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="16dp" />
|
||||
android:layout_marginBottom="@dimen/sw_16dp" />
|
||||
|
||||
<!-- 消息内容 -->
|
||||
<TextView
|
||||
@@ -32,11 +32,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/detail_purchase_confirm_msg"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textColor="#666666"
|
||||
android:gravity="center"
|
||||
android:lineSpacingExtra="4dp"
|
||||
android:layout_marginBottom="24dp" />
|
||||
android:lineSpacingExtra="@dimen/sw_4dp"
|
||||
android:layout_marginBottom="@dimen/sw_24dp" />
|
||||
|
||||
<!-- 按钮容器 -->
|
||||
<LinearLayout
|
||||
@@ -49,11 +49,11 @@
|
||||
<TextView
|
||||
android:id="@+id/btn_cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="@dimen/sw_48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginEnd="@dimen/sw_8dp"
|
||||
android:text="@string/cancel"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textColor="#999999"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/button_cancel_background"
|
||||
@@ -63,11 +63,11 @@
|
||||
<TextView
|
||||
android:id="@+id/btn_confirm"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="@dimen/sw_48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginStart="@dimen/sw_8dp"
|
||||
android:text="@string/confirm"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textColor="#FFFFFF"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/button_confirm_background"
|
||||
|
||||
Reference in New Issue
Block a user