1. 结果
2. 过程
2.1. 创建布局文件alert_sign.xml(还拼错了…don’t mind)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableRow>
<TextView
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="用户名:"
android:textSize="25dp"
android:layout_width="wrap_content"
android:textAlignment="textEnd"
android:paddingEnd="10dp"/>
<EditText
android:id="@+id/edt_usr"
android:layout_width="wrap_content"
android:layout_height="wr