|
@@ -0,0 +1,217 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.appcompat.widget.LinearLayoutCompat 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="@color/text_black"
|
|
|
+ android:orientation="vertical"
|
|
|
+ tools:context=".screen.register.RegisterActivity">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:id="@+id/backgroundCard"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="200dp"
|
|
|
+ app:cardBackgroundColor="@color/cardview_dark_background"
|
|
|
+ app:cardElevation="0dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/profileImage"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="150dp"
|
|
|
+ android:src="@drawable/ic_user_white" />
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="15dp">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_firstname"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/et_firstname"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_firstname"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_lastname"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/et_lastname"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_lastname"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_gender"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatSpinner
|
|
|
+ android:id="@+id/et_gender"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_lastname"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/color_gray_300"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RadioGroup
|
|
|
+ android:id="@+id/radioGroup"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/radioButtonEmail"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:checked="true"
|
|
|
+ android:text="Email" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/radioButtonPhone"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Phone Number" />
|
|
|
+ </RadioGroup>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_email"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/et_email"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_email"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_phone"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/et_phone"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_phone"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_password"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/et_password"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_password"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_confirm_password"
|
|
|
+ style="@style/BoxInputLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:endIconMode="clear_text"
|
|
|
+ app:hintEnabled="false">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/et_confirm_password"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_white"
|
|
|
+ android:hint="@string/hint_confirm_password"
|
|
|
+ android:inputType="text"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:padding="0dp" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/registerButton"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="32dp"
|
|
|
+ android:layout_marginTop="32dp"
|
|
|
+ android:layout_marginEnd="32dp"
|
|
|
+ android:text="Register"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/confirmPasswordEditText" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</androidx.appcompat.widget.LinearLayoutCompat>
|