activity_verify.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<layout xmlns:android="http://schemas.android.com/apk/res/android">
  3
  4    <LinearLayout
  5        android:layout_width="match_parent"
  6        android:layout_height="match_parent"
  7        android:background="?attr/color_background_primary"
  8        android:orientation="vertical">
  9
 10        <include
 11            android:id="@+id/toolbar"
 12            layout="@layout/toolbar"/>
 13        <ScrollView
 14            android:layout_width="match_parent"
 15            android:layout_height="match_parent"
 16            android:fillViewport="true">
 17        <RelativeLayout
 18            android:layout_width="match_parent"
 19            android:layout_height="wrap_content">
 20
 21            <LinearLayout
 22                android:id="@+id/instructions"
 23                android:layout_width="wrap_content"
 24                android:layout_height="wrap_content"
 25                android:layout_alignParentTop="true"
 26                android:layout_centerHorizontal="true"
 27                android:gravity="center_horizontal"
 28                android:orientation="vertical"
 29                android:padding="16dp">
 30
 31                <TextView
 32                    android:id="@+id/we_have_sent"
 33                    android:layout_width="wrap_content"
 34                    android:layout_height="wrap_content"
 35                    android:text="@string/we_have_sent_you_an_sms"
 36                    android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
 37
 38                <TextView
 39                    android:layout_width="wrap_content"
 40                    android:layout_height="wrap_content"
 41                    android:text="@string/please_enter_pin"
 42                    android:textAppearance="@style/TextAppearance.Conversations.Body1" />
 43            </LinearLayout>
 44
 45            <LinearLayout
 46                android:id="@+id/pin_box"
 47                android:layout_width="230sp"
 48                android:layout_height="wrap_content"
 49                android:layout_below="@+id/instructions"
 50                android:layout_centerHorizontal="true">
 51                <EditText
 52                    android:layout_width="35sp"
 53                    android:layout_height="wrap_content"
 54                    android:digits="1234567890"
 55                    android:inputType="number"
 56                    android:maxLength="1"
 57                    android:textSize="40sp"
 58                    android:gravity="center"
 59                    android:textIsSelectable="false"
 60                    />
 61                <Space
 62                    android:layout_width="0dp"
 63                    android:layout_height="0dp"
 64                    android:layout_weight="1"/>
 65                <EditText
 66                    android:layout_width="35sp"
 67                    android:layout_height="wrap_content"
 68                    android:digits="1234567890"
 69                    android:inputType="number"
 70                    android:maxLength="1"
 71                    android:textSize="40sp"
 72                    android:gravity="center"
 73                    android:textIsSelectable="false"
 74                    />
 75                <Space
 76                    android:layout_width="0dp"
 77                    android:layout_height="0dp"
 78                    android:layout_weight="1"/>
 79                <EditText
 80                    android:layout_width="35sp"
 81                    android:layout_height="wrap_content"
 82                    android:digits="1234567890"
 83                    android:inputType="number"
 84                    android:maxLength="1"
 85                    android:textSize="40sp"
 86                    android:gravity="center"
 87                    android:textIsSelectable="false"
 88                    />
 89                <Space
 90                    android:layout_width="0dp"
 91                    android:layout_height="0dp"
 92                    android:layout_weight="1"/>
 93                <EditText
 94                    android:layout_width="35sp"
 95                    android:layout_height="wrap_content"
 96                    android:digits="1234567890"
 97                    android:inputType="number"
 98                    android:maxLength="1"
 99                    android:textSize="40sp"
100                    android:gravity="center"
101                    android:textIsSelectable="false"
102                    />
103                <Space
104                    android:layout_width="0dp"
105                    android:layout_height="0dp"
106                    android:layout_weight="1"/>
107                <EditText
108                    android:layout_width="35sp"
109                    android:layout_height="wrap_content"
110                    android:digits="1234567890"
111                    android:inputType="number"
112                    android:maxLength="1"
113                    android:textSize="40sp"
114                    android:gravity="center"
115                    android:textIsSelectable="false"
116                    />
117                <Space
118                    android:layout_width="0dp"
119                    android:layout_height="0dp"
120                    android:layout_weight="1"/>
121                <EditText
122                    android:layout_width="35sp"
123                    android:layout_height="wrap_content"
124                    android:digits="1234567890"
125                    android:inputType="number"
126                    android:maxLength="1"
127                    android:textSize="40sp"
128                    android:gravity="center"
129                    android:textIsSelectable="false"
130                    />
131            </LinearLayout>
132            <Button
133                android:id="@+id/next"
134                android:layout_alignParentBottom="true"
135                android:layout_alignParentEnd="true"
136                style="@style/Widget.Conversations.Button.Borderless"
137                android:layout_width="wrap_content"
138                android:layout_height="wrap_content"
139                android:text="@string/next"
140                android:textColor="?colorAccent"/>
141
142            <Button
143                android:id="@+id/back"
144                android:layout_alignParentBottom="true"
145                android:layout_alignParentStart="true"
146                style="@style/Widget.Conversations.Button.Borderless"
147                android:layout_width="wrap_content"
148                android:layout_height="wrap_content"
149                android:text="@string/back"
150                android:textColor="?android:textColorSecondary" />
151                <Button
152                    android:layout_centerHorizontal="true"
153                    android:layout_below="@+id/pin_box"
154                    android:id="@+id/resend_sms"
155                    style="@style/Widget.Conversations.Button.Borderless"
156                    android:layout_width="wrap_content"
157                    android:layout_height="wrap_content"
158                    android:text="@string/resend_sms"
159                    android:textColor="?android:textColorSecondary"/>
160        </RelativeLayout>
161        </ScrollView>
162    </LinearLayout>
163</layout>