|
|
@ -12,113 +12,150 @@ |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" /> |
|
|
|
android:layout_height="wrap_content" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollView |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="match_parent"> |
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
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" |
|
|
|
<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_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/titlebar"> |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/username" |
|
|
|
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:importantForAutofill="no" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
android:hint="@string/prompt_user" |
|
|
|
android:hint="@string/prompt_user" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
android:inputType="text" |
|
|
|
android:inputType="text" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
app:layout_constraintTop_toBottomOf="@+id/imageView" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_user" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/password" |
|
|
|
android:id="@+id/password" |
|
|
|
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_marginTop="8dp" |
|
|
|
android:importantForAutofill="no" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
android:hint="@string/prompt_password" |
|
|
|
android:hint="@string/prompt_password" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
android:inputType="text|textPassword" |
|
|
|
android:inputType="text|textPassword" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
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/username" /> |
|
|
|
app:layout_constraintTop_toBottomOf="@id/username" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_clock" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/confirmPassword" |
|
|
|
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_marginTop="8dp" |
|
|
|
android:importantForAutofill="no" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
android:hint="@string/prompt_confirm_password" |
|
|
|
android:hint="@string/prompt_confirm_password" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
android:inputType="text|textPassword" |
|
|
|
android:inputType="text|textPassword" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
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/password" /> |
|
|
|
app:layout_constraintTop_toBottomOf="@id/password" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_clock" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/phone" |
|
|
|
android:id="@+id/phone" |
|
|
|
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_marginTop="8dp" |
|
|
|
android:importantForAutofill="no" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
android:hint="@string/prompt_phone" |
|
|
|
android:hint="@string/prompt_phone" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
android:inputType="text|phone" |
|
|
|
android:inputType="text|phone" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
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/confirmPassword" /> |
|
|
|
app:layout_constraintTop_toBottomOf="@id/confirmPassword" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
|
|
|
|
app:met_iconLeft="@mipmap/ic_tel" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<com.rengwuxian.materialedittext.MaterialEditText |
|
|
|
android:id="@+id/email" |
|
|
|
android:id="@+id/email" |
|
|
|
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_marginTop="8dp" |
|
|
|
android:importantForAutofill="no" |
|
|
|
android:layout_marginEnd="44dp" |
|
|
|
android:hint="@string/prompt_email" |
|
|
|
android:hint="@string/prompt_email" |
|
|
|
|
|
|
|
android:importantForAutofill="no" |
|
|
|
android:inputType="none|textEmailAddress" |
|
|
|
android:inputType="none|textEmailAddress" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
android:selectAllOnFocus="true" |
|
|
|
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/phone" /> |
|
|
|
app:layout_constraintTop_toBottomOf="@id/phone" |
|
|
|
|
|
|
|
app:met_floatingLabel="highlight" |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
app:met_iconLeft="@mipmap/ic_email" /> |
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/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" |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
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> |
|
|
|
|
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |