<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@android:color/transparent"
|
android:gravity="center"
|
android:orientation="vertical">
|
<RelativeLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="220dp"
|
android:layout_height="140dp"
|
android:background="@color/train_bg"
|
android:layout_gravity="center"
|
android:padding="10dp">
|
<com.google.android.material.textfield.TextInputLayout
|
android:layout_width="match_parent"
|
app:counterMaxLength="8"
|
app:counterEnabled="true"
|
app:passwordToggleEnabled="true"
|
android:id="@+id/txt_input_1"
|
android:layout_height="60dp">
|
<EditText
|
android:layout_width="match_parent"
|
android:hint="@string/plspwd"
|
android:id="@+id/et_pwd"
|
android:inputType="textPassword"
|
android:layout_height="50dp" />
|
</com.google.android.material.textfield.TextInputLayout>
|
<Button
|
android:layout_marginTop="20dp"
|
android:layout_marginStart="20dp"
|
android:layout_width="80dp"
|
android:layout_height="50dp"
|
android:id="@+id/btn_sure"
|
android:layout_alignParentStart="true"
|
android:layout_below="@+id/txt_input_1"
|
android:text="确定"/>
|
|
<Button
|
android:id="@+id/btn_cancle"
|
android:layout_width="80dp"
|
android:layout_height="50dp"
|
android:layout_below="@+id/txt_input_1"
|
android:layout_alignParentEnd="true"
|
android:layout_marginTop="20dp"
|
android:layout_marginEnd="20dp"
|
android:text="取消" />
|
|
|
</RelativeLayout>
|
</LinearLayout>
|