first cmmit

master
杜世莲 6 years ago
parent f0920856db
commit fdaa850b50

@ -8,18 +8,17 @@
<ImageView
android:id="@+id/butterflypng"
android:layout_width="match_parent"
android:layout_height="96dp"
android:layout_marginBottom="0dp"
android:layout_width="463dp"
android:layout_height="99dp"
android:src="@drawable/but"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/indexmemotext" />
app:layout_constraintHorizontal_bias="0.493"
app:layout_constraintStart_toStartOf="parent" />
<ImageView
android:id="@+id/indexdiarypng"
android:layout_width="0dp"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="102dp"
@ -34,8 +33,8 @@
<ImageView
android:id="@+id/indexmyng"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginBottom="8dp"
@ -46,8 +45,8 @@
<ImageView
android:id="@+id/indexsharepng"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_marginTop="312dp"
android:layout_marginBottom="26dp"
android:src="@drawable/indexshare"

@ -4,8 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteY="81dp"
android:background="@drawable/allbackground">
android:background="@drawable/allbackground"
tools:layout_editor_absoluteY="25dp">
<ImageView
android:id="@+id/reg_head"
@ -28,37 +28,47 @@
android:layout_height="33dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:gravity="center"
android:text="出生年月日"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="17dp"
app:layout_constraintEnd_toEndOf="@+id/editPwd"
app:layout_constraintStart_toStartOf="@+id/editPwd"
tools:layout_editor_absoluteY="182dp"
app:layout_constraintBottom_toTopOf="@+id/tableRow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editPwd"
tools:ignore="MissingConstraints" />
<EditText
android:id="@+id/editPhone"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_marginStart="8dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="8dp"
android:background="#ceefecec"
android:hint="手机号"
android:inputType="number"
android:lines="1"
android:maxLength="11"
android:singleLine="true"
app:layout_constraintEnd_toEndOf="@+id/tableRow"
app:layout_constraintStart_toStartOf="@+id/tableRow"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteY="270dp" />
<!-- input password -->
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tableRow"
tools:ignore="MissingConstraints" />
<!-- input password -->
<EditText
android:id="@+id/editPwd"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="密码"
@ -66,20 +76,17 @@
android:maxLength="16"
android:password="true"
android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/tvShowDialog"
app:layout_constraintEnd_toEndOf="@+id/editName"
app:layout_constraintStart_toStartOf="@+id/editName"
app:layout_constraintTop_toBottomOf="@+id/editName"
app:layout_constraintBottom_toTopOf="@+id/tableRow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/editName"
tools:ignore="MissingConstraints" />
<!-- the regist button -->
<!-- the regist button -->
<Button
android:id="@+id/btnRegist"
style="@style/textstyle"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#e137b7b5"
android:onClick="OnMyRegistClick"
@ -87,10 +94,8 @@
android:textColor="#fff"
android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/btnGetcord"
tools:ignore="MissingConstraints" />
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="5dp" />
<EditText
android:id="@+id/editCode"
@ -98,20 +103,18 @@
android:layout_height="45dp"
android:layout_below="@+id/editPhone"
android:layout_alignStart="@+id/btnRegist"
android:layout_alignLeft="@+id/btnRegist"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:ems="10"
android:hint="请输入验证码"
android:inputType="textPersonName"
app:layout_constraintEnd_toStartOf="@+id/btnGetcord"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintBottom_toTopOf="@+id/btnRegist"
app:layout_constraintStart_toStartOf="@+id/editPhone"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteY="345dp"
android:layout_alignLeft="@+id/btnRegist" />
app:layout_constraintTop_toBottomOf="@+id/tableRow"
tools:ignore="MissingConstraints" />
<Button
android:id="@+id/btnGetcord"
@ -121,11 +124,17 @@
android:layout_alignEnd="@+id/editPhone"
android:layout_alignRight="@+id/editPhone"
android:layout_alignBottom="@+id/editCode"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="@color/colorPrimary"
android:text="获取验证码"
app:layout_constraintBottom_toTopOf="@+id/btnRegist"
app:layout_constraintEnd_toEndOf="@+id/editPhone"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteY="346dp" />
app:layout_constraintStart_toEndOf="@+id/editCode"
app:layout_constraintTop_toBottomOf="@+id/tableRow"
tools:ignore="MissingConstraints" />
<EditText
android:id="@+id/editName"
@ -147,11 +156,16 @@
<TableRow
android:id="@+id/tableRow"
android:layout_width="250dp"
android:layout_height="39dp"
android:layout_height="43dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
app:layout_constraintEnd_toEndOf="@+id/tvShowDialog"
app:layout_constraintStart_toStartOf="@+id/tvShowDialog"
tools:layout_editor_absoluteY="223dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints">
<TextView
@ -185,6 +199,4 @@
</TableRow>
</android.support.constraint.ConstraintLayout>

@ -1,21 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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">
android:background="@drawable/allbackground"
tools:layout_editor_absoluteY="25dp">
<TextView
android:id="@+id/textView"
style="@style/textstyle"
android:layout_width="fill_parent"
android:layout_marginStart="0dp"
android:layout_marginLeft="0dp"
android:layout_width="match_parent"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp"
android:layout_marginRight="8dp"
android:background="#deffffff"
android:gravity="center"
android:text="@string/resPwd"
@ -29,8 +26,10 @@
android:id="@+id/editName"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="请输入用户名"
@ -38,17 +37,20 @@
android:lines="1"
android:maxLength="11"
android:singleLine="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toTopOf="@+id/editResPwd"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="55dp" />
tools:ignore="MissingConstraints" />
<!-- input password -->
<EditText
android:id="@+id/editPwd"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="请输入新密码"
@ -56,17 +58,20 @@
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" />
app:layout_constraintBottom_toTopOf="@+id/editResPwd"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editName"
tools:ignore="MissingConstraints" />
<!-- input password again -->
<EditText
android:id="@+id/editResPwd"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="请再次输入新密码"
@ -74,23 +79,27 @@
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" />
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
tools:ignore="MissingConstraints" />
<!-- the confirm button -->
<Button
android:id="@+id/btnConfirm"
style="@style/textstyle"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#e137b7b5"
android:onClick="OnMyConfirmClick"
android:text="@string/confirm"
android:textColor="#fff"
android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editResPwd"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="391dp" />
tools:layout_editor_absoluteX="5dp" />
</android.support.constraint.ConstraintLayout>

@ -1,9 +0,0 @@
<resources>
<string name="app_name">音之轨迹</string>
<string name="login">登录</string>
<string name="forgetPwd">忘记密码</string>
<string name="startRegist">开始注册</string>
<string name="regist">注册</string>
<string name="resPwd">重置密码</string>
<string name="confirm">确认</string>
</resources>

@ -29,10 +29,7 @@
</value>
</option>
</component>
<component name="ProjectPlainTextFileTypeManager">
<file url="file://$PROJECT_DIR$/app/src/main/res/layout/add_memo.xml" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

@ -3,8 +3,8 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.administrator.myvoice"
minSdkVersion 26
applicationId "com.example.administrator.test"
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"

@ -1,4 +1,4 @@
package com.example.administrator.myvoice;
package com.example.administrator.test;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.administrator.myvoice", appContext.getPackageName());
assertEquals("com.example.administrator.test", appContext.getPackageName());
}
}

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.administrator.myvoice">
package="com.example.administrator.test">
<application
android:allowBackup="true"

@ -1,4 +1,4 @@
package com.example.administrator.myvoice;
package com.example.administrator.test;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
@ -8,6 +8,6 @@ public class IndexActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_index);
setContentView(R.layout.res_password);
}
}

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 171 KiB

@ -8,18 +8,17 @@
<ImageView
android:id="@+id/butterflypng"
android:layout_width="match_parent"
android:layout_height="96dp"
android:layout_marginBottom="0dp"
android:layout_width="463dp"
android:layout_height="99dp"
android:src="@drawable/but"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/indexmemotext" />
app:layout_constraintHorizontal_bias="0.493"
app:layout_constraintStart_toStartOf="parent" />
<ImageView
android:id="@+id/indexdiarypng"
android:layout_width="0dp"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="102dp"
@ -34,8 +33,8 @@
<ImageView
android:id="@+id/indexmyng"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginBottom="8dp"
@ -46,8 +45,8 @@
<ImageView
android:id="@+id/indexsharepng"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_marginTop="312dp"
android:layout_marginBottom="26dp"
android:src="@drawable/indexshare"

@ -4,8 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteY="81dp"
android:background="@drawable/allbackground">
android:background="@drawable/allbackground"
tools:layout_editor_absoluteY="25dp">
<ImageView
android:id="@+id/reg_head"
@ -28,37 +28,47 @@
android:layout_height="33dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:gravity="center"
android:text="出生年月日"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="17dp"
app:layout_constraintEnd_toEndOf="@+id/editPwd"
app:layout_constraintStart_toStartOf="@+id/editPwd"
tools:layout_editor_absoluteY="182dp"
app:layout_constraintBottom_toTopOf="@+id/tableRow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editPwd"
tools:ignore="MissingConstraints" />
<EditText
android:id="@+id/editPhone"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_marginStart="8dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="8dp"
android:background="#ceefecec"
android:hint="手机号"
android:inputType="number"
android:lines="1"
android:maxLength="11"
android:singleLine="true"
app:layout_constraintEnd_toEndOf="@+id/tableRow"
app:layout_constraintStart_toStartOf="@+id/tableRow"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteY="270dp" />
<!-- input password -->
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tableRow"
tools:ignore="MissingConstraints" />
<!-- input password -->
<EditText
android:id="@+id/editPwd"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="密码"
@ -66,20 +76,17 @@
android:maxLength="16"
android:password="true"
android:singleLine="true"
app:layout_constraintBottom_toTopOf="@+id/tvShowDialog"
app:layout_constraintEnd_toEndOf="@+id/editName"
app:layout_constraintStart_toStartOf="@+id/editName"
app:layout_constraintTop_toBottomOf="@+id/editName"
app:layout_constraintBottom_toTopOf="@+id/tableRow"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/editName"
tools:ignore="MissingConstraints" />
<!-- the regist button -->
<!-- the regist button -->
<Button
android:id="@+id/btnRegist"
style="@style/textstyle"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#e137b7b5"
android:onClick="OnMyRegistClick"
@ -87,10 +94,8 @@
android:textColor="#fff"
android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/btnGetcord"
tools:ignore="MissingConstraints" />
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="5dp" />
<EditText
android:id="@+id/editCode"
@ -98,20 +103,18 @@
android:layout_height="45dp"
android:layout_below="@+id/editPhone"
android:layout_alignStart="@+id/btnRegist"
android:layout_alignLeft="@+id/btnRegist"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:ems="10"
android:hint="请输入验证码"
android:inputType="textPersonName"
app:layout_constraintEnd_toStartOf="@+id/btnGetcord"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintBottom_toTopOf="@+id/btnRegist"
app:layout_constraintStart_toStartOf="@+id/editPhone"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteY="345dp"
android:layout_alignLeft="@+id/btnRegist" />
app:layout_constraintTop_toBottomOf="@+id/tableRow"
tools:ignore="MissingConstraints" />
<Button
android:id="@+id/btnGetcord"
@ -121,11 +124,17 @@
android:layout_alignEnd="@+id/editPhone"
android:layout_alignRight="@+id/editPhone"
android:layout_alignBottom="@+id/editCode"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="@color/colorPrimary"
android:text="获取验证码"
app:layout_constraintBottom_toTopOf="@+id/btnRegist"
app:layout_constraintEnd_toEndOf="@+id/editPhone"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteY="346dp" />
app:layout_constraintStart_toEndOf="@+id/editCode"
app:layout_constraintTop_toBottomOf="@+id/tableRow"
tools:ignore="MissingConstraints" />
<EditText
android:id="@+id/editName"
@ -147,11 +156,16 @@
<TableRow
android:id="@+id/tableRow"
android:layout_width="250dp"
android:layout_height="39dp"
android:layout_height="43dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
app:layout_constraintEnd_toEndOf="@+id/tvShowDialog"
app:layout_constraintStart_toStartOf="@+id/tvShowDialog"
tools:layout_editor_absoluteY="223dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints">
<TextView
@ -185,6 +199,4 @@
</TableRow>
</android.support.constraint.ConstraintLayout>

@ -1,21 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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">
android:background="@drawable/allbackground"
tools:layout_editor_absoluteY="25dp">
<TextView
android:id="@+id/textView"
style="@style/textstyle"
android:layout_width="fill_parent"
android:layout_marginStart="0dp"
android:layout_marginLeft="0dp"
android:layout_width="match_parent"
android:layout_marginTop="0dp"
android:layout_marginEnd="0dp"
android:layout_marginRight="8dp"
android:background="#deffffff"
android:gravity="center"
android:text="@string/resPwd"
@ -29,8 +26,10 @@
android:id="@+id/editName"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="请输入用户名"
@ -38,17 +37,20 @@
android:lines="1"
android:maxLength="11"
android:singleLine="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toTopOf="@+id/editResPwd"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="55dp" />
tools:ignore="MissingConstraints" />
<!-- input password -->
<EditText
android:id="@+id/editPwd"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="请输入新密码"
@ -56,17 +58,20 @@
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" />
app:layout_constraintBottom_toTopOf="@+id/editResPwd"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editName"
tools:ignore="MissingConstraints" />
<!-- input password again -->
<EditText
android:id="@+id/editResPwd"
style="@style/textstyle"
android:layout_width="250dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:background="#ceefecec"
android:hint="请再次输入新密码"
@ -74,23 +79,27 @@
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" />
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView"
tools:ignore="MissingConstraints" />
<!-- the confirm button -->
<Button
android:id="@+id/btnConfirm"
style="@style/textstyle"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#e137b7b5"
android:onClick="OnMyConfirmClick"
android:text="@string/confirm"
android:textColor="#fff"
android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editResPwd"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="391dp" />
tools:layout_editor_absoluteX="5dp" />
</android.support.constraint.ConstraintLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

@ -3,5 +3,5 @@
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
<color name="colorwhite">#fff</color>
<color name="white">#fff</color>
</resources>

@ -0,0 +1,35 @@
<resources>
<string name="app_name">音之轨迹</string>
<string name="login">登录</string>
<string name="forgetPwd">忘记密码</string>
<string name="startRegist">开始注册</string>
<string name="regist">注册</string>
<string name="resPwd">重置密码</string>
<string name="memotitle">备忘录</string>
<string name="back"><![CDATA[<返回]]></string>
<string name="data">2018年【测试用】</string>
<string name="memot1">1标题标题标题标题标题标题【测试用】</string>
<string name="memot2">2标题标题标题标题标题标题【测试用】</string>
<string name="memot3">3标题标题标题标题标题标题【测试用】</string>
<string name="memot4">4标题标题标题标题标题标题【测试用】</string>
<string name="memot5">5标题标题标题标题标题标题【测试用】</string>
<string name="data1">2018年1月1日</string>
<string name="addmemotitle">新建便签</string>
<string name="complete">完成</string>
<string name="recordtime1">00:00:00【测试用】</string>
<string name="recordtime2">00:00:00【测试用】</string>
<string name="xiaoxi">消息</string>
<string name="pinglun">评论</string>
<string name="tongzhi">通知</string>
<string name="zan"></string>
<string name="newfan">新的粉丝</string>
<string name="shouyet">首页</string>
<string name="luyint">录音</string>
<string name="xiaoxit">消息</string>
<string name="messagetext">消息</string>
<string name="wodet">我的</string>
<string name="diarytitle">日记列表</string>
<string name="caogao">草稿</string>
<string name="liaotian">聊天</string>
<string name="confirm">重置密码</string>
</resources>

@ -30,4 +30,5 @@
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
Loading…
Cancel
Save