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