activity_main.xml 12.6 KB
Newer Older
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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="wrap_content"
    tools:context=".MainActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="20dp">

        <com.google.android.material.textfield.TextInputLayout
Javokhir's avatar
2.1.1    
Javokhir committed
16
17
18
            style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
19
20
21
22
23
24
            android:hint="@string/client_id"
            app:helperText="* Required"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputClientId"
Javokhir's avatar
2.1.1    
Javokhir committed
25
26
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
27
                android:importantForAutofill="no"
Javokhir's avatar
2.1.1    
Javokhir committed
28
29
                android:inputType="textMultiLine"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
30
31
32
        </com.google.android.material.textfield.TextInputLayout>

        <com.google.android.material.textfield.TextInputLayout
Javokhir's avatar
2.1.1    
Javokhir committed
33
34
35
            style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
36
37
38
39
40
41
42
            android:layout_marginTop="12dp"
            android:hint="@string/passport"
            app:helperText="* Optional"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputPassportData"
Javokhir's avatar
2.1.1    
Javokhir committed
43
44
45
46
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:importantForAutofill="no"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
47
48
49
        </com.google.android.material.textfield.TextInputLayout>

        <com.google.android.material.textfield.TextInputLayout
Javokhir's avatar
2.1.1    
Javokhir committed
50
51
52
            style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
53
54
55
56
57
58
59
60
            android:layout_marginTop="12dp"
            android:hint="@string/birth_date"
            app:helperText="* Optional"
            app:helperTextEnabled="true"
            app:placeholderText="дд.мм.гггг">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputDate"
Javokhir's avatar
2.1.1    
Javokhir committed
61
62
63
64
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:importantForAutofill="no"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
65
66
        </com.google.android.material.textfield.TextInputLayout>

67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
        <com.google.android.material.textfield.TextInputLayout
            style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            android:hint="@string/sdk_hash"
            app:helperText="* Optional"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputSdkHash"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:importantForAutofill="no"
                android:inputType="textMultiLine"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
        </com.google.android.material.textfield.TextInputLayout>

Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
85
        <com.google.android.material.textfield.TextInputLayout
Javokhir's avatar
2.1.1    
Javokhir committed
86
87
88
            style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
89
90
91
92
93
94
95
            android:layout_marginTop="12dp"
            android:hint="@string/external_id"
            app:helperText="* Optional"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputExternalId"
Javokhir's avatar
2.1.1    
Javokhir committed
96
97
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
98
                android:importantForAutofill="no"
Javokhir's avatar
2.1.1    
Javokhir committed
99
100
                android:inputType="textMultiLine"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
101
102
        </com.google.android.material.textfield.TextInputLayout>

Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
103
        <com.google.android.material.textfield.TextInputLayout
Javokhir's avatar
2.1.1    
Javokhir committed
104
105
106
            style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
107
108
109
110
111
112
113
            android:layout_marginTop="12dp"
            android:hint="@string/organization_phone_number"
            app:helperText="* Optional"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputPhoneNumber"
Javokhir's avatar
2.1.1    
Javokhir committed
114
115
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
116
                android:importantForAutofill="no"
Javokhir's avatar
2.1.1    
Javokhir committed
117
118
                android:inputType="phone"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
119
120
121
122
123
124
125
        </com.google.android.material.textfield.TextInputLayout>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:text="@string/threshold"
Javokhir's avatar
Javokhir committed
126
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
127
128
129
130
131
132
133
134
135
136

        <com.google.android.material.slider.Slider
            android:id="@+id/thresholdSlider"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:stepSize="0.01"
            android:valueFrom="0.50"
            android:valueTo="0.99"
            app:labelBehavior="floating" />

Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
137
        <RadioGroup
Javokhir's avatar
Javokhir committed
138
            android:id="@+id/radioGroupBuildMode"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
139
140
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
141
            android:layout_marginTop="8dp"
Javokhir's avatar
Javokhir committed
142
            android:checkedButton="@id/radioProd"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
143
            android:orientation="horizontal">
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
144
145

            <RadioButton
Javokhir's avatar
Javokhir committed
146
                android:id="@+id/radioProd"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
147
148
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
149
                android:text="@string/prod"
150
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
151
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
152
153

            <RadioButton
Javokhir's avatar
Javokhir committed
154
                android:id="@+id/radioDev"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
155
156
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
157
158
                android:layout_marginStart="16dp"
                android:text="@string/dev"
159
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
160
161
162
163
164
165
166
167
168
169
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
        </RadioGroup>

        <RadioGroup
            android:id="@+id/radioGroupEntryType"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:checkedButton="@id/radioAuth"
            android:orientation="horizontal">
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
170
171

            <RadioButton
Javokhir's avatar
Javokhir committed
172
173
174
175
                android:id="@+id/radioAuth"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/auth"
176
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
177
178
179
180
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />

            <RadioButton
                android:id="@+id/radioFace"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
181
182
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
183
                android:layout_marginStart="12dp"
Javokhir's avatar
Javokhir committed
184
                android:text="@string/face"
185
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
186
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
187
188
189
        </RadioGroup>

        <RadioGroup
Javokhir's avatar
Javokhir committed
190
            android:id="@+id/radioGroupLang"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
191
192
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
193
            android:layout_marginTop="8dp"
Javokhir's avatar
Javokhir committed
194
            android:checkedButton="@id/radioEn"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
195
196
197
            android:orientation="horizontal">

            <RadioButton
Javokhir's avatar
Javokhir committed
198
                android:id="@+id/radioUz"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
199
200
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
201
                android:text="@string/uzbek"
202
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
203
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
204
205

            <RadioButton
Javokhir's avatar
Javokhir committed
206
                android:id="@+id/radioEn"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
207
208
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
209
                android:layout_marginStart="12dp"
Javokhir's avatar
Javokhir committed
210
                android:text="@string/english"
211
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
212
213
214
215
216
217
218
219
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />

            <RadioButton
                android:id="@+id/radioRu"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="12dp"
                android:text="@string/russian"
220
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
221
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
222
223
224
        </RadioGroup>

        <RadioGroup
Javokhir's avatar
Javokhir committed
225
            android:id="@+id/radioGroupShape"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
226
227
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
228
            android:layout_marginTop="8dp"
Javokhir's avatar
Javokhir committed
229
            android:checkedButton="@id/radioCircle"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
230
231
232
            android:orientation="horizontal">

            <RadioButton
Javokhir's avatar
Javokhir committed
233
                android:id="@+id/radioCircle"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
234
235
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
236
                android:text="@string/circle"
237
                android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
238
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
239
240

            <RadioButton
Javokhir's avatar
Javokhir committed
241
                android:id="@+id/radioEllipse"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
242
243
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
244
245
246
247
                android:layout_marginStart="12dp"
                android:text="@string/ellipse"
                android:textAllCaps="true"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
248
249
        </RadioGroup>

Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
250
251
252
        <CheckBox
            android:id="@+id/checkboxWithPhoto"
            android:layout_width="match_parent"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
253
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
254
255
            android:layout_marginTop="8dp"
            android:checked="true"
Javokhir's avatar
Javokhir committed
256
            android:text="@string/with_photo"
257
            android:textAllCaps="true"
Javokhir's avatar
Javokhir committed
258
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
259
260
261

        <com.google.android.material.button.MaterialButton
            android:id="@+id/buttonStart"
Javokhir's avatar
2.1.1    
Javokhir committed
262
            style="@style/Widget.Material3.Button.UnelevatedButton"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
263
264
265
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
266
            android:layout_marginTop="20dp"
Javokhir's avatar
2.1.1    
Javokhir committed
267
            android:text="@string/scan_face_data"
268
            android:textAllCaps="true"
Javokhir's avatar
2.1.1    
Javokhir committed
269
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
270
271
272
273
274

        <TextView
            android:id="@+id/textResult"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
275
            android:layout_marginTop="20dp"
Javokhir's avatar
Javokhir committed
276
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
277
278
279
280

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
281
            android:layout_marginTop="20dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
282
            android:text="@string/result_image"
Javokhir's avatar
Javokhir committed
283
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
284
285
286
287
288
289
290
291
292

        <ImageView
            android:id="@+id/imageResult"
            android:layout_width="200dp"
            android:layout_height="200dp"
            android:layout_marginTop="16dp"
            android:contentDescription="@string/image" />
    </LinearLayout>
</androidx.core.widget.NestedScrollView>