|
@@ -1,13 +1,23 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
|
|
|
- <RelativeLayout
|
|
|
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@drawable/bg_card_white_r8"
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
+
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
|
+ android:id="@+id/step_title_layout"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
|
|
+ android:layout_marginLeft="100dp"
|
|
|
|
|
+ android:layout_marginTop="100dp"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
|
android:id="@+id/step_tv"
|
|
android:id="@+id/step_tv"
|
|
@@ -18,6 +28,176 @@
|
|
|
android:text="@string/init_set_admin_account_step"
|
|
android:text="@string/init_set_admin_account_step"
|
|
|
android:textColor="@color/white"
|
|
android:textColor="@color/white"
|
|
|
android:textSize="@dimen/normal_text_size" />
|
|
android:textSize="@dimen/normal_text_size" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/step_tip"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
|
|
+ android:text="@string/init_set_admin_account_step_tip"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size_big" />
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
- </RelativeLayout>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/step_hint"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
|
|
+ android:text="@string/init_set_admin_account_step_hint"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/step_title_layout"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/step_title_layout" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/admin_username_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="@dimen/common_spacing_2x"
|
|
|
|
|
+ android:text="@string/admin_username"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/step_hint"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/step_hint" />
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:id="@+id/admin_username_et"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
|
|
+ android:layout_marginRight="@dimen/common_spacing_7x"
|
|
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
|
|
+ android:hint="@string/please_input_admin_username"
|
|
|
|
|
+ android:maxLines="1"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing_1_5x"
|
|
|
|
|
+ android:paddingVertical="2dp"
|
|
|
|
|
+ android:singleLine="true"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/admin_username_tv"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/admin_username_tv"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/admin_username_tv" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/password_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="@dimen/common_spacing"
|
|
|
|
|
+ android:text="@string/set_password"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/admin_username_tv"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/admin_username_tv" />
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
+ android:id="@+id/container_password"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
|
|
+ android:layout_marginRight="@dimen/common_spacing_7x"
|
|
|
|
|
+ app:boxBackgroundMode="none"
|
|
|
|
|
+ app:endIconMode="password_toggle"
|
|
|
|
|
+ app:hintEnabled="false"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/password_tv"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/password_tv"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/password_tv">
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
|
|
+ android:id="@+id/password_et"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
|
|
+ android:hint="@string/please_input_password"
|
|
|
|
|
+ android:inputType="textPassword"
|
|
|
|
|
+ android:maxLines="1"
|
|
|
|
|
+ android:minHeight="0dp"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
|
|
+ android:paddingVertical="2dp"
|
|
|
|
|
+ android:singleLine="true"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size" />
|
|
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/repeat_password_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="@dimen/common_spacing"
|
|
|
|
|
+ android:text="@string/repeat_password"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/password_tv"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/password_tv" />
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
+ android:id="@+id/container_repeat_password"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="30dp"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
|
|
+ android:layout_marginRight="@dimen/common_spacing_7x"
|
|
|
|
|
+ app:endIconMode="password_toggle"
|
|
|
|
|
+ app:hintEnabled="false"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/repeat_password_tv"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/repeat_password_tv"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/repeat_password_tv">
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
|
|
+ android:id="@+id/repeat_password_et"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:background="@drawable/bg_common_input"
|
|
|
|
|
+ android:hint="@string/please_input_repeat_password"
|
|
|
|
|
+ android:inputType="textPassword"
|
|
|
|
|
+ android:maxLines="1"
|
|
|
|
|
+ android:minHeight="0dp"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
|
|
+ android:paddingVertical="2dp"
|
|
|
|
|
+ android:singleLine="true"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_text_size" />
|
|
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/previous_btn"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
|
+ android:layout_marginBottom="100dp"
|
|
|
|
|
+ android:background="@drawable/common_btn"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing_2x"
|
|
|
|
|
+ android:text="@string/previous"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_btn_text_size"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/btn_space" />
|
|
|
|
|
+
|
|
|
|
|
+ <Space
|
|
|
|
|
+ android:id="@+id/btn_space"
|
|
|
|
|
+ android:layout_width="@dimen/common_spacing_2x"
|
|
|
|
|
+ android:layout_height="1dp"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/next_btn"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
|
+ android:layout_marginBottom="100dp"
|
|
|
|
|
+ android:background="@drawable/common_btn"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing_2x"
|
|
|
|
|
+ android:text="@string/next"
|
|
|
|
|
+ android:textColor="@color/black"
|
|
|
|
|
+ android:textSize="@dimen/common_btn_text_size"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/btn_space" />
|
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</layout>
|
|
</layout>
|