You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.6 KiB
96 lines
3.6 KiB
6 years ago
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<android.support.constraint.ConstraintLayout
|
||
|
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:background="@drawable/allbackground">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/textView"
|
||
|
style="@style/textstyle"
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_marginStart="0dp"
|
||
|
android:layout_marginLeft="0dp"
|
||
|
android:layout_marginTop="0dp"
|
||
|
android:layout_marginEnd="0dp"
|
||
|
android:layout_marginRight="8dp"
|
||
|
android:background="#deffffff"
|
||
|
android:gravity="center"
|
||
|
android:text="@string/resPwd"
|
||
|
android:textSize="24sp"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:ignore="MissingConstraints" />
|
||
|
<!-- input phone -->
|
||
|
<EditText
|
||
|
android:id="@+id/editName"
|
||
|
style="@style/textstyle"
|
||
|
android:layout_width="250dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:layout_marginBottom="8dp"
|
||
|
android:background="#ceefecec"
|
||
|
android:hint="请输入用户名"
|
||
|
android:inputType="number"
|
||
|
android:lines="1"
|
||
|
android:maxLength="11"
|
||
|
android:singleLine="true"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/textView"
|
||
|
tools:ignore="MissingConstraints"
|
||
|
tools:layout_editor_absoluteX="55dp" />
|
||
|
<!-- input password -->
|
||
|
<EditText
|
||
|
android:id="@+id/editPwd"
|
||
|
style="@style/textstyle"
|
||
|
android:layout_width="250dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:layout_marginBottom="8dp"
|
||
|
android:background="#ceefecec"
|
||
|
android:hint="请输入新密码"
|
||
|
android:lines="1"
|
||
|
android:maxLength="16"
|
||
|
android:password="true"
|
||
|
android:singleLine="true"
|
||
|
app:layout_constraintBottom_toTopOf="@+id/editName"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/textView"
|
||
|
tools:ignore="MissingConstraints"
|
||
|
tools:layout_editor_absoluteX="55dp" />
|
||
|
<!-- input password again -->
|
||
|
<EditText
|
||
|
android:id="@+id/editResPwd"
|
||
|
style="@style/textstyle"
|
||
|
android:layout_width="250dp"
|
||
|
android:layout_height="40dp"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:layout_marginBottom="8dp"
|
||
|
android:background="#ceefecec"
|
||
|
android:hint="请再次输入新密码"
|
||
|
android:lines="1"
|
||
|
android:maxLength="16"
|
||
|
android:password="true"
|
||
|
android:singleLine="true"
|
||
|
app:layout_constraintBottom_toTopOf="@+id/editName"
|
||
|
app:layout_constraintTop_toBottomOf="@+id/editPwd"
|
||
|
tools:ignore="MissingConstraints"
|
||
|
tools:layout_editor_absoluteX="55dp" />
|
||
|
<!-- the confirm button -->
|
||
|
<Button
|
||
|
android:id="@+id/btnConfirm"
|
||
|
style="@style/textstyle"
|
||
|
android:layout_width="fill_parent"
|
||
|
android:layout_height="50dp"
|
||
|
android:background="#e137b7b5"
|
||
|
android:onClick="OnMyConfirmClick"
|
||
|
android:text="@string/confirm"
|
||
|
android:textColor="#fff"
|
||
|
android:textSize="20dp"
|
||
|
tools:ignore="MissingConstraints"
|
||
|
tools:layout_editor_absoluteX="8dp"
|
||
|
tools:layout_editor_absoluteY="391dp" />
|
||
|
|
||
|
</android.support.constraint.ConstraintLayout>
|