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
14 <androidx.coordinatorlayout.widget.CoordinatorLayout
15 android:id="@+id/coordinator"
16 android:layout_width="match_parent"
17 android:layout_height="match_parent">
18
19 <ScrollView
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:fillViewport="true">
23
24 <RelativeLayout
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content">
27
28 <LinearLayout
29 android:id="@+id/instructions"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
32 android:layout_alignParentTop="true"
33 android:layout_centerHorizontal="true"
34 android:gravity="center_horizontal"
35 android:orientation="vertical"
36 android:padding="16dp">
37
38 <TextView
39 android:id="@+id/we_have_sent"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:text="@string/we_have_sent_you_an_sms_to_x"
43 android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
44
45 <TextView
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:text="@string/please_enter_pin_below"
49 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
50 </LinearLayout>
51
52 <LinearLayout
53 android:id="@+id/pin_box"
54 android:layout_width="230sp"
55 android:layout_height="wrap_content"
56 android:layout_below="@+id/instructions"
57 android:layout_centerHorizontal="true">
58
59 <EditText
60 android:layout_width="35sp"
61 android:layout_height="wrap_content"
62 android:digits="1234567890"
63 android:gravity="center"
64 android:imeOptions="flagNoExtractUi"
65 android:inputType="number"
66 android:maxLength="1"
67 android:textIsSelectable="false"
68 android:textSize="40sp" />
69
70 <Space
71 android:layout_width="0dp"
72 android:layout_height="0dp"
73 android:layout_weight="1" />
74
75 <EditText
76 android:layout_width="35sp"
77 android:layout_height="wrap_content"
78 android:digits="1234567890"
79 android:gravity="center"
80 android:imeOptions="flagNoExtractUi"
81 android:inputType="number"
82 android:maxLength="1"
83 android:textIsSelectable="false"
84 android:textSize="40sp" />
85
86 <Space
87 android:layout_width="0dp"
88 android:layout_height="0dp"
89 android:layout_weight="1" />
90
91 <EditText
92 android:layout_width="35sp"
93 android:layout_height="wrap_content"
94 android:digits="1234567890"
95 android:gravity="center"
96 android:imeOptions="flagNoExtractUi"
97 android:inputType="number"
98 android:maxLength="1"
99 android:textIsSelectable="false"
100 android:textSize="40sp" />
101
102 <Space
103 android:layout_width="0dp"
104 android:layout_height="0dp"
105 android:layout_weight="1" />
106
107 <EditText
108 android:layout_width="35sp"
109 android:layout_height="wrap_content"
110 android:digits="1234567890"
111 android:gravity="center"
112 android:imeOptions="flagNoExtractUi"
113 android:inputType="number"
114 android:maxLength="1"
115 android:textIsSelectable="false"
116 android:textSize="40sp" />
117
118 <Space
119 android:layout_width="0dp"
120 android:layout_height="0dp"
121 android:layout_weight="1" />
122
123 <EditText
124 android:layout_width="35sp"
125 android:layout_height="wrap_content"
126 android:digits="1234567890"
127 android:gravity="center"
128 android:imeOptions="flagNoExtractUi"
129 android:inputType="number"
130 android:maxLength="1"
131 android:textIsSelectable="false"
132 android:textSize="40sp" />
133
134 <Space
135 android:layout_width="0dp"
136 android:layout_height="0dp"
137 android:layout_weight="1" />
138
139 <EditText
140 android:layout_width="35sp"
141 android:layout_height="wrap_content"
142 android:digits="1234567890"
143 android:gravity="center"
144 android:imeOptions="flagNoExtractUi"
145 android:inputType="number"
146 android:maxLength="1"
147 android:textIsSelectable="false"
148 android:textSize="40sp" />
149 </LinearLayout>
150
151 <Button
152 android:id="@+id/next"
153 style="@style/Widget.Conversations.Button.Borderless.Primary"
154 android:layout_width="wrap_content"
155 android:layout_height="wrap_content"
156 android:layout_alignParentEnd="true"
157 android:layout_alignParentRight="true"
158 android:layout_alignParentBottom="true"
159 android:text="@string/next" />
160
161 <Button
162 android:id="@+id/back"
163 style="@style/Widget.Conversations.Button.Borderless"
164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
166 android:layout_alignParentStart="true"
167 android:layout_alignParentLeft="true"
168 android:layout_alignParentBottom="true"
169 android:text="@string/back"
170 android:textColor="?android:textColorSecondary" />
171
172 <Button
173 android:id="@+id/resend_sms"
174 style="@style/Widget.Conversations.Button.Borderless"
175 android:layout_width="wrap_content"
176 android:layout_height="wrap_content"
177 android:layout_below="@+id/pin_box"
178 android:layout_centerHorizontal="true"
179 android:text="@string/resend_sms"
180 android:textColor="?android:textColorSecondary" />
181
182 <ProgressBar
183 android:id="@+id/progressBar"
184 style="?android:attr/progressBarStyle"
185 android:layout_width="wrap_content"
186 android:layout_height="wrap_content"
187 android:layout_below="@+id/pin_box"
188 android:layout_centerHorizontal="true" />
189 </RelativeLayout>
190 </ScrollView>
191 </androidx.coordinatorlayout.widget.CoordinatorLayout>
192 </LinearLayout>
193</layout>