|
|
@ -12,113 +12,150 @@ |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" /> |
|
|
|
android:layout_height="wrap_content" /> |
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
<ScrollView |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="match_parent"> |
|
|
|
android:layout_gravity="center_vertical" |
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/titlebar"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
|
|
|
|
android:id="@+id/username" |
|
|
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:hint="@string/prompt_user" |
|
|
|
|
|
|
|
android:inputType="text" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
|
|
|
|
android:id="@+id/password" |
|
|
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:hint="@string/prompt_password" |
|
|
|
|
|
|
|
android:inputType="text|textPassword" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/username" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
android:id="@+id/confirmPassword" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent"> |
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
|
|
|
android:id="@+id/imageView" |
|
|
|
|
|
|
|
android:layout_width="300dp" |
|
|
|
|
|
|
|
android:layout_height="230dp" |
|
|
|
|
|
|
|
android:layout_marginTop="60dp" |
|
|
|
|
|
|
|
android:src="@mipmap/bg_login" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:hint="@string/prompt_confirm_password" |
|
|
|
|
|
|
|
android:inputType="text|textPassword" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/password" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/phone" |
|
|
|
android:id="@+id/username" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginStart="44dp" |
|
|
|
|
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
|
|
|
|
android:hint="@string/prompt_user" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:inputType="text" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/imageView" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_user" /> |
|
|
|
|
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:importantForAutofill="no" |
|
|
|
android:id="@+id/password" |
|
|
|
android:hint="@string/prompt_phone" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:inputType="text|phone" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:layout_marginStart="44dp" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/confirmPassword" /> |
|
|
|
android:hint="@string/prompt_password" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:inputType="text|textPassword" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/username" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_clock" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/email" |
|
|
|
android:id="@+id/confirmPassword" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginStart="44dp" |
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
|
|
|
|
android:hint="@string/prompt_confirm_password" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:inputType="text|textPassword" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/password" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_clock" /> |
|
|
|
|
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:importantForAutofill="no" |
|
|
|
android:id="@+id/phone" |
|
|
|
android:hint="@string/prompt_email" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:inputType="none|textEmailAddress" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:layout_marginStart="44dp" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/phone" /> |
|
|
|
android:hint="@string/prompt_phone" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:inputType="text|phone" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/confirmPassword" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_tel" /> |
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:layout_width="0dp" |
|
|
|
android:id="@+id/email" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
android:layout_marginStart="44dp" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
android:layout_marginTop="8dp" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/email"> |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
|
|
|
|
android:hint="@string/prompt_email" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
|
|
|
|
android:inputType="none|textEmailAddress" |
|
|
|
|
|
|
|
android:selectAllOnFocus="true" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/phone" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_email" /> |
|
|
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
<TextView |
|
|
|
android:id="@+id/register" |
|
|
|
android:id="@+id/register" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginStart="@dimen/size_50" |
|
|
|
android:layout_marginStart="44dp" |
|
|
|
|
|
|
|
android:layout_marginTop="24dp" |
|
|
|
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
|
|
|
android:background="@drawable/bg_round_main" |
|
|
|
android:enabled="false" |
|
|
|
android:enabled="false" |
|
|
|
|
|
|
|
android:gravity="center" |
|
|
|
|
|
|
|
android:padding="8dp" |
|
|
|
android:text="@string/action_register" |
|
|
|
android:text="@string/action_register" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
android:textColor="@android:color/white" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/guideline" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
app:layout_constraintTop_toBottomOf="@+id/email" /> |
|
|
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
<TextView |
|
|
|
android:id="@+id/back" |
|
|
|
android:id="@+id/back" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginEnd="@dimen/size_50" |
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
|
|
|
android:layout_marginTop="24dp" |
|
|
|
|
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
|
|
|
|
android:background="@drawable/bg_round_main" |
|
|
|
|
|
|
|
android:gravity="center" |
|
|
|
|
|
|
|
android:padding="8dp" |
|
|
|
android:text="@string/action_back" |
|
|
|
android:text="@string/action_back" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
android:textColor="@android:color/white" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
app:layout_constraintHorizontal_bias="1.0" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/guideline" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/email" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline |
|
|
|
|
|
|
|
android:id="@+id/guideline" |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:orientation="vertical" |
|
|
|
|
|
|
|
app:layout_constraintGuide_percent="0.5" /> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |