endian11
2021-01-19 b2fe9c4f073523284c671bf8895a8412cd269518
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?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>