安卓对话框-Dialog常见有四种:
1、普通对话框
2、进度条对话框
3、选择对话框
4、自定义对话框
代码演示:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="match_parent"
android:layout_height="match_parent"
android:orientation= "vertical"
tools:context="com.example.a13756.myapplication.MainActivity">
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="普通对话框" />
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="多选框" />
<Button
android:id="@+id/button6"
android:layout_width="match_parent"
android:layout_height=