Android应用中的自定义对话框(或)
发布时间
阅读量:
阅读量
自行设计一个对话框
自定义对话框需要创建一个布局文件layout_custom_dialog
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
>
<TextView
android:id="@+id/tv_custom_dialog_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:textColor="@color/colorBlack"
android:text="提示"
android:textStyle="bold"
全部评论 (0)
还没有任何评论哟~
