<?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"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="@dimen/dp_240"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
app:cardBackgroundColor="#FFFFFF"
|
app:cardCornerRadius="15dp"
|
app:cardElevation="0px"
|
>
|
|
<LinearLayout
|
android:id="@+id/ll_ui_container"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingTop="@dimen/dp_20">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_ui_title"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:textColor="#DE000000"
|
android:textSize="20sp"
|
app:autoSizeTextType="uniform"
|
app:autoSizeMaxTextSize="20sp"
|
app:autoSizeMinTextSize="16sp"
|
android:textStyle="bold"
|
android:layout_marginHorizontal="20dp"
|
tools:text="标题"
|
tools:visibility="visible"
|
/>
|
|
|
<TextView
|
android:id="@+id/tv_content"
|
android:padding="10dp"
|
android:text=""
|
tools:text="内容"
|
android:gravity="center"
|
android:textColor="#FF757575"
|
android:textSize="16sp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:id="@+id/tv_ui_cancel"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:focusable="true"
|
android:gravity="center"
|
android:paddingVertical="15dp"
|
android:text="取消"
|
android:textColor="#FFF83F39"
|
android:textSize="@dimen/sp_14"
|
/>
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_ui_confirm"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:background="@drawable/transparent_selector"
|
android:focusable="true"
|
android:gravity="center"
|
android:paddingVertical="15dp"
|
android:text="确定"
|
android:textColor="#2B83DD"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|