fragment_authentication_sign_up.xml 4.04 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2 3
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
4
    xmlns:tools="http://schemas.android.com/tools"
5
    android:id="@+id/constraint_layout"
6
    android:layout_width="match_parent"
7 8
    android:layout_height="match_parent"
    tools:context=".authentication.signup.ui.SignupFragment">
9 10 11

    <TextView
        android:id="@+id/text_headline"
12
        style="@style/Authentication.Headline.TextView"
13 14 15 16
        android:text="@string/title_sign_up"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
17 18

    <EditText
19
        android:id="@+id/text_name"
20
        style="@style/Authentication.EditText"
21
        android:layout_marginTop="32dp"
22
        android:drawableStart="@drawable/ic_person_black_24dp"
23
        android:hint="@string/msg_name"
24
        android:imeOptions="actionNext"
25 26 27 28
        android:inputType="textCapWords"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/text_headline" />
29 30 31

    <EditText
        android:id="@+id/text_username"
32
        style="@style/Authentication.EditText"
33 34
        android:layout_marginTop="16dp"
        android:drawableStart="@drawable/ic_at_black_24dp"
35 36
        android:hint="@string/msg_username"
        android:imeOptions="actionNext"
37 38 39
        android:inputType="text"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
40
        app:layout_constraintTop_toBottomOf="@+id/text_name" />
41 42 43

    <EditText
        android:id="@+id/text_password"
44
        style="@style/Authentication.EditText"
45
        android:layout_marginTop="16dp"
46 47
        android:drawableStart="@drawable/ic_lock_black_24dp"
        android:hint="@string/msg_password"
48
        android:imeOptions="actionNext"
49 50 51 52
        android:inputType="textPassword"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/text_username" />
53

54 55
    <EditText
        android:id="@+id/text_email"
56
        style="@style/Authentication.EditText"
57 58 59 60
        android:layout_marginTop="16dp"
        android:drawableStart="@drawable/ic_email_black_24dp"
        android:hint="@string/msg_email"
        android:imeOptions="actionDone"
61 62 63 64 65
        android:inputType="textEmailAddress"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/text_password" />

66 67 68 69 70 71 72 73 74 75 76 77 78
    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/view_loading"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_marginTop="16dp"
        android:visibility="gone"
        app:indicatorName="BallPulseIndicator"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/text_email"
        tools:visibility="visible" />

79 80 81 82 83 84 85 86
    <TextView
        android:id="@+id/text_new_user_agreement"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="16dp"
        android:layout_marginEnd="@dimen/screen_edge_left_and_right_margins"
        android:layout_marginStart="@dimen/screen_edge_left_and_right_margins"
        android:gravity="center"
87
        android:textColorLink="@color/colorAccent"
88 89 90
        app:layout_constraintBottom_toTopOf="@+id/button_sign_up"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent" />
91

92 93
    <Button
        android:id="@+id/button_sign_up"
94
        style="@style/Authentication.Button"
95 96
        android:text="@string/title_sign_up"
        app:layout_constraintBottom_toBottomOf="parent" />
97

98
</android.support.constraint.ConstraintLayout>