first commit

master
杜世莲 6 years ago
parent bfe7131d09
commit f0920856db

@ -11,21 +11,28 @@
<EditText <EditText
android:id="@+id/et_username" android:id="@+id/et_username"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="fill_parent" android:layout_width="250dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="用户名" android:hint="用户名"
android:inputType="textPersonName" android:inputType="textPersonName"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/et_pwd" app:layout_constraintBottom_toTopOf="@+id/et_pwd"
tools:ignore="MissingConstraints" app:layout_constraintEnd_toEndOf="parent"
tools:layout_editor_absoluteX="16dp" /> app:layout_constraintStart_toStartOf="parent"
tools:ignore="MissingConstraints" />
<!-- input pwd --> <!-- input pwd -->
<EditText <EditText
android:id="@+id/et_pwd" android:id="@+id/et_pwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="fill_parent" android:layout_width="250dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="密码" android:hint="密码"
@ -34,9 +41,10 @@
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" tools:ignore="MissingConstraints" />
tools:layout_editor_absoluteX="5dp" />
<!-- the login button --> <!-- the login button -->
<Button <Button
android:id="@+id/btn_login" android:id="@+id/btn_login"

@ -14,6 +14,7 @@
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:src="@mipmap/choosehead" android:src="@mipmap/choosehead"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
@ -56,16 +57,20 @@
android:id="@+id/editPwd" android:id="@+id/editPwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="50dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="密码" android:hint="密码"
android:lines="1" android:lines="1"
android:maxLength="16" android:maxLength="16"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/tvShowDialog"
app:layout_constraintEnd_toEndOf="@+id/editName" app:layout_constraintEnd_toEndOf="@+id/editName"
app:layout_constraintStart_toStartOf="@+id/editName" app:layout_constraintStart_toStartOf="@+id/editName"
tools:ignore="MissingConstraints" app:layout_constraintTop_toBottomOf="@+id/editName"
tools:layout_editor_absoluteY="124dp" /> tools:ignore="MissingConstraints" />
<!-- the regist button --> <!-- the regist button -->
<Button <Button
android:id="@+id/btnRegist" android:id="@+id/btnRegist"
@ -73,10 +78,8 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="#e137b7b5" android:background="#e137b7b5"
android:onClick="OnMyRegistClick" android:onClick="OnMyRegistClick"
@ -86,7 +89,7 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editCode" app:layout_constraintTop_toBottomOf="@+id/btnGetcord"
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints" />
<EditText <EditText
@ -127,12 +130,10 @@
<EditText <EditText
android:id="@+id/editName" android:id="@+id/editName"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="48dp" android:layout_height="50dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:ems="10" android:ems="10"
android:gravity="center" android:gravity="center"

@ -29,31 +29,34 @@
android:id="@+id/editName" android:id="@+id/editName"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="47dp" android:layout_height="40dp"
android:layout_marginTop="12dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="请输入用户名" android:hint="请输入用户名"
android:inputType="number" android:inputType="number"
android:lines="1" android:lines="1"
android:maxLength="11" android:maxLength="11"
android:singleLine="true" android:singleLine="true"
app:layout_constraintEnd_toEndOf="@+id/editResPwd" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintTop_toBottomOf="@+id/textView"
app:layout_constraintStart_toStartOf="@+id/editResPwd" tools:ignore="MissingConstraints"
app:layout_constraintTop_toBottomOf="@+id/editResPwd" tools:layout_editor_absoluteX="55dp" />
tools:ignore="MissingConstraints" />
<!-- input password --> <!-- input password -->
<EditText <EditText
android:id="@+id/editPwd" android:id="@+id/editPwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_marginTop="72dp" android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="请输入新密码" android:hint="请输入新密码"
android:lines="1" android:lines="1"
android:maxLength="16" android:maxLength="16"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/editName"
app:layout_constraintTop_toBottomOf="@+id/textView" app:layout_constraintTop_toBottomOf="@+id/textView"
tools:ignore="MissingConstraints" tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="55dp" /> tools:layout_editor_absoluteX="55dp" />
@ -62,38 +65,32 @@
android:id="@+id/editResPwd" android:id="@+id/editResPwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="40dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="请再次输入新密码" android:hint="请再次输入新密码"
android:lines="1" android:lines="1"
android:maxLength="16" android:maxLength="16"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintEnd_toEndOf="@+id/editPwd" app:layout_constraintBottom_toTopOf="@+id/editName"
app:layout_constraintStart_toStartOf="@+id/editPwd"
app:layout_constraintTop_toBottomOf="@+id/editPwd" app:layout_constraintTop_toBottomOf="@+id/editPwd"
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="55dp" />
<!-- the confirm button --> <!-- the confirm button -->
<Button <Button
android:id="@+id/btnConfirm" android:id="@+id/btnConfirm"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_marginStart="8dp" android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:background="#e137b7b5" android:background="#e137b7b5"
android:onClick="OnMyConfirmClick" android:onClick="OnMyConfirmClick"
android:text="@string/confirm" android:text="@string/confirm"
android:textColor="#fff" android:textColor="#fff"
android:textSize="20dp" android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent" tools:ignore="MissingConstraints"
app:layout_constraintEnd_toEndOf="parent" tools:layout_editor_absoluteX="8dp"
app:layout_constraintHorizontal_bias="0.0" tools:layout_editor_absoluteY="391dp" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editName"
tools:ignore="MissingConstraints" />
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>

@ -11,21 +11,28 @@
<EditText <EditText
android:id="@+id/et_username" android:id="@+id/et_username"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="fill_parent" android:layout_width="250dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="用户名" android:hint="用户名"
android:inputType="textPersonName" android:inputType="textPersonName"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/et_pwd" app:layout_constraintBottom_toTopOf="@+id/et_pwd"
tools:ignore="MissingConstraints" app:layout_constraintEnd_toEndOf="parent"
tools:layout_editor_absoluteX="16dp" /> app:layout_constraintStart_toStartOf="parent"
tools:ignore="MissingConstraints" />
<!-- input pwd --> <!-- input pwd -->
<EditText <EditText
android:id="@+id/et_pwd" android:id="@+id/et_pwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="fill_parent" android:layout_width="250dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="密码" android:hint="密码"
@ -34,9 +41,10 @@
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" tools:ignore="MissingConstraints" />
tools:layout_editor_absoluteX="5dp" />
<!-- the login button --> <!-- the login button -->
<Button <Button
android:id="@+id/btn_login" android:id="@+id/btn_login"

@ -14,6 +14,7 @@
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:src="@mipmap/choosehead" android:src="@mipmap/choosehead"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
@ -56,16 +57,20 @@
android:id="@+id/editPwd" android:id="@+id/editPwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="50dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="密码" android:hint="密码"
android:lines="1" android:lines="1"
android:maxLength="16" android:maxLength="16"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/tvShowDialog"
app:layout_constraintEnd_toEndOf="@+id/editName" app:layout_constraintEnd_toEndOf="@+id/editName"
app:layout_constraintStart_toStartOf="@+id/editName" app:layout_constraintStart_toStartOf="@+id/editName"
tools:ignore="MissingConstraints" app:layout_constraintTop_toBottomOf="@+id/editName"
tools:layout_editor_absoluteY="124dp" /> tools:ignore="MissingConstraints" />
<!-- the regist button --> <!-- the regist button -->
<Button <Button
android:id="@+id/btnRegist" android:id="@+id/btnRegist"
@ -73,10 +78,8 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="#e137b7b5" android:background="#e137b7b5"
android:onClick="OnMyRegistClick" android:onClick="OnMyRegistClick"
@ -86,7 +89,7 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editCode" app:layout_constraintTop_toBottomOf="@+id/btnGetcord"
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints" />
<EditText <EditText
@ -127,12 +130,10 @@
<EditText <EditText
android:id="@+id/editName" android:id="@+id/editName"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="48dp" android:layout_height="50dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:ems="10" android:ems="10"
android:gravity="center" android:gravity="center"

@ -29,31 +29,34 @@
android:id="@+id/editName" android:id="@+id/editName"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="47dp" android:layout_height="40dp"
android:layout_marginTop="12dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="请输入用户名" android:hint="请输入用户名"
android:inputType="number" android:inputType="number"
android:lines="1" android:lines="1"
android:maxLength="11" android:maxLength="11"
android:singleLine="true" android:singleLine="true"
app:layout_constraintEnd_toEndOf="@+id/editResPwd" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintTop_toBottomOf="@+id/textView"
app:layout_constraintStart_toStartOf="@+id/editResPwd" tools:ignore="MissingConstraints"
app:layout_constraintTop_toBottomOf="@+id/editResPwd" tools:layout_editor_absoluteX="55dp" />
tools:ignore="MissingConstraints" />
<!-- input password --> <!-- input password -->
<EditText <EditText
android:id="@+id/editPwd" android:id="@+id/editPwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_marginTop="72dp" android:layout_height="40dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="请输入新密码" android:hint="请输入新密码"
android:lines="1" android:lines="1"
android:maxLength="16" android:maxLength="16"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/editName"
app:layout_constraintTop_toBottomOf="@+id/textView" app:layout_constraintTop_toBottomOf="@+id/textView"
tools:ignore="MissingConstraints" tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="55dp" /> tools:layout_editor_absoluteX="55dp" />
@ -62,38 +65,32 @@
android:id="@+id/editResPwd" android:id="@+id/editResPwd"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="250dp" android:layout_width="250dp"
android:layout_height="40dp"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec" android:background="#ceefecec"
android:hint="请再次输入新密码" android:hint="请再次输入新密码"
android:lines="1" android:lines="1"
android:maxLength="16" android:maxLength="16"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
app:layout_constraintEnd_toEndOf="@+id/editPwd" app:layout_constraintBottom_toTopOf="@+id/editName"
app:layout_constraintStart_toStartOf="@+id/editPwd"
app:layout_constraintTop_toBottomOf="@+id/editPwd" app:layout_constraintTop_toBottomOf="@+id/editPwd"
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="55dp" />
<!-- the confirm button --> <!-- the confirm button -->
<Button <Button
android:id="@+id/btnConfirm" android:id="@+id/btnConfirm"
style="@style/textstyle" style="@style/textstyle"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_marginStart="8dp" android:layout_height="50dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:background="#e137b7b5" android:background="#e137b7b5"
android:onClick="OnMyConfirmClick" android:onClick="OnMyConfirmClick"
android:text="@string/confirm" android:text="@string/confirm"
android:textColor="#fff" android:textColor="#fff"
android:textSize="20dp" android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent" tools:ignore="MissingConstraints"
app:layout_constraintEnd_toEndOf="parent" tools:layout_editor_absoluteX="8dp"
app:layout_constraintHorizontal_bias="0.0" tools:layout_editor_absoluteY="391dp" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editName"
tools:ignore="MissingConstraints" />
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
Loading…
Cancel
Save