activity_main.xml 11.7 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
67
        </com.google.android.material.textfield.TextInputLayout>

        <com.google.android.material.textfield.TextInputLayout
Javokhir's avatar
2.1.1    
Javokhir committed
68
69
70
            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
71
72
73
74
75
76
77
            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
78
79
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
80
                android:importantForAutofill="no"
Javokhir's avatar
2.1.1    
Javokhir committed
81
82
                android:inputType="textMultiLine"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
83
84
        </com.google.android.material.textfield.TextInputLayout>

Javohir Savriy's avatar
2.0.9    
Javohir Savriy 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"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
89
90
91
92
93
94
95
            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
96
97
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
98
                android:importantForAutofill="no"
Javokhir's avatar
2.1.1    
Javokhir committed
99
100
                android:inputType="phone"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
101
102
103
104
105
106
107
        </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
108
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
109
110
111
112
113
114
115
116
117
118

        <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
119
        <RadioGroup
Javokhir's avatar
Javokhir committed
120
            android:id="@+id/radioGroupBuildMode"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
121
122
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
123
            android:layout_marginTop="8dp"
Javokhir's avatar
Javokhir committed
124
            android:checkedButton="@id/radioProd"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
125
            android:orientation="horizontal">
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
126
127

            <RadioButton
Javokhir's avatar
Javokhir committed
128
129
                android:textAllCaps="true"
                android:id="@+id/radioProd"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
130
131
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
132
133
                android:text="@string/prod"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
134
135

            <RadioButton
Javokhir's avatar
Javokhir committed
136
137
                android:textAllCaps="true"
                android:id="@+id/radioDev"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
138
139
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
140
141
142
143
144
145
146
147
148
149
150
151
                android:layout_marginStart="16dp"
                android:text="@string/dev"
                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
152
153

            <RadioButton
Javokhir's avatar
Javokhir committed
154
155
156
157
158
159
160
161
162
163
                android:textAllCaps="true"
                android:id="@+id/radioAuth"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/auth"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />

            <RadioButton
                android:textAllCaps="true"
                android:id="@+id/radioFace"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
164
165
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
166
                android:layout_marginStart="12dp"
Javokhir's avatar
Javokhir committed
167
168
                android:text="@string/face"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
169
170
171
        </RadioGroup>

        <RadioGroup
Javokhir's avatar
Javokhir committed
172
            android:id="@+id/radioGroupLang"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
173
174
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
175
            android:layout_marginTop="8dp"
Javokhir's avatar
Javokhir committed
176
            android:checkedButton="@id/radioEn"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
177
178
179
            android:orientation="horizontal">

            <RadioButton
Javokhir's avatar
Javokhir committed
180
181
                android:textAllCaps="true"
                android:id="@+id/radioUz"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
182
183
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
184
185
                android:text="@string/uzbek"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
186
187

            <RadioButton
Javokhir's avatar
Javokhir committed
188
189
                android:textAllCaps="true"
                android:id="@+id/radioEn"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
190
191
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
192
                android:layout_marginStart="12dp"
Javokhir's avatar
Javokhir committed
193
194
195
196
197
198
199
200
201
202
203
                android:text="@string/english"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />

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

        <RadioGroup
Javokhir's avatar
Javokhir committed
207
            android:id="@+id/radioGroupShape"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
208
209
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
210
            android:layout_marginTop="8dp"
Javokhir's avatar
Javokhir committed
211
            android:checkedButton="@id/radioCircle"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
212
213
214
            android:orientation="horizontal">

            <RadioButton
Javokhir's avatar
Javokhir committed
215
216
                android:textAllCaps="true"
                android:id="@+id/radioCircle"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
217
218
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
219
220
                android:text="@string/circle"
                android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
221
222

            <RadioButton
Javokhir's avatar
Javokhir committed
223
                android:id="@+id/radioEllipse"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
224
225
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javokhir's avatar
Javokhir committed
226
227
228
229
                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
230
231
        </RadioGroup>

Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
232
        <CheckBox
Javokhir's avatar
Javokhir committed
233
            android:textAllCaps="true"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
234
235
            android:id="@+id/checkboxWithPhoto"
            android:layout_width="match_parent"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
236
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
237
238
            android:layout_marginTop="8dp"
            android:checked="true"
Javokhir's avatar
Javokhir committed
239
240
            android:text="@string/with_photo"
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
241
242
243

        <com.google.android.material.button.MaterialButton
            android:id="@+id/buttonStart"
Javokhir's avatar
Javokhir committed
244
            android:textAllCaps="true"
Javokhir's avatar
2.1.1    
Javokhir committed
245
            style="@style/Widget.Material3.Button.UnelevatedButton"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
246
247
248
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
249
            android:layout_marginTop="20dp"
Javokhir's avatar
2.1.1    
Javokhir committed
250
251
            android:text="@string/scan_face_data"
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
252
253
254
255
256

        <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
257
            android:layout_marginTop="20dp"
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
262

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
263
            android:layout_marginTop="20dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
264
            android:text="@string/result_image"
Javokhir's avatar
Javokhir committed
265
            android:textAppearance="@style/TextAppearance.Material3.BodyLarge" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
266
267
268
269
270
271
272
273
274

        <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>