|
@@ -0,0 +1,180 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<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"
|
|
|
+ tools:context=".RegisterBActivity">
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:fillViewport="true"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ >
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <android.support.constraint.Guideline
|
|
|
+ android:id="@+id/guideLine_registerB_centerHorizontal"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintGuide_percent="0.5"
|
|
|
+ />
|
|
|
+
|
|
|
+ <android.widget.Space
|
|
|
+ android:id="@+id/anchor_registerB_left"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="136dp"
|
|
|
+ android:layout_marginEnd="136dp"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/guideLine_registerB_centerHorizontal"
|
|
|
+ />
|
|
|
+
|
|
|
+ <android.widget.Space
|
|
|
+ android:id="@+id/anchor_registerB_right"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="136dp"
|
|
|
+ android:layout_marginStart="136dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/guideLine_registerB_centerHorizontal"
|
|
|
+ />
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:id="@+id/btn_registerB_close"
|
|
|
+ android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:src="@drawable/ic_close_blue_24dp"
|
|
|
+ android:contentDescription="@string/emptyImageContextDescription"
|
|
|
+ android:layout_width="36dp"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_registerB_title"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="96dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/register_title"
|
|
|
+ android:textColor="@color/register_title"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/view_registerB_fbRegister"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed" />
|
|
|
+
|
|
|
+ <com.kdanmobile.kdanloginregisterui.btn.FacebookRegisterBtn
|
|
|
+ android:id="@+id/view_registerB_fbRegister"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="@dimen/login_register_btn_height"
|
|
|
+ android:layout_marginTop="66dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_registerB_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/view_registerB_googleRegister"
|
|
|
+ />
|
|
|
+
|
|
|
+ <com.kdanmobile.kdanloginregisterui.btn.GoogleRegisterBtn
|
|
|
+ android:id="@+id/view_registerB_googleRegister"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="@dimen/login_register_btn_height"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_registerB_fbRegister"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_registerB_orDivider"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_registerB_orDivider"
|
|
|
+ android:text="@string/or"
|
|
|
+ android:textSize="@dimen/or_divider_text_size"
|
|
|
+ android:textColor="@color/or_diver"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_registerB_googleRegister"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/view_registerB_emailRegister"
|
|
|
+ />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:background="@color/or_diver"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/tv_registerB_orDivider"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/tv_registerB_orDivider"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toLeftOf="@id/tv_registerB_orDivider"
|
|
|
+ />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:background="@color/or_diver"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/tv_registerB_orDivider"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/tv_registerB_orDivider"
|
|
|
+ app:layout_constraintLeft_toRightOf="@id/tv_registerB_orDivider"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ />
|
|
|
+
|
|
|
+ <com.kdanmobile.kdanloginregisterui.btn.EmailRegisterBtn
|
|
|
+ android:id="@+id/view_registerB_emailRegister"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="@dimen/login_register_btn_height"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_registerB_orDivider"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_registerB_switchToLogin"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_registerB_switchToLogin"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:text="@string/switch_to_login"
|
|
|
+ android:textColor="@color/switch_text"
|
|
|
+ android:gravity="center"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_registerB_tosAndPp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/view_registerB_emailRegister" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_registerB_tosAndPp"
|
|
|
+ tools:text="By signing up, you agree to our terms of service and that you have read our privacy policy."
|
|
|
+ android:textSize="@dimen/tos_and_pp_text_size"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="134dp"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ android:gravity="center"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/anchor_registerB_left"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/anchor_registerB_right"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_registerB_switchToLogin"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ />
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+</android.support.constraint.ConstraintLayout>
|