activity_main.xml 8.13 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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?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
            style="@style/TextInputOutlined"
            android:hint="@string/client_id"
            app:helperText="* Required"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputClientId"
                style="@style/TextInput"
                android:importantForAutofill="no"
                android:inputType="textMultiLine" />
        </com.google.android.material.textfield.TextInputLayout>

        <com.google.android.material.textfield.TextInputLayout
            style="@style/TextInputOutlined"
            android:layout_marginTop="12dp"
            android:hint="@string/passport"
            app:helperText="* Optional"
            app:helperTextEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/inputPassportData"
                style="@style/TextInput"
                android:importantForAutofill="no" />
        </com.google.android.material.textfield.TextInputLayout>

        <com.google.android.material.textfield.TextInputLayout
            style="@style/TextInputOutlined"
            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"
                style="@style/TextInput"
                android:importantForAutofill="no" />
        </com.google.android.material.textfield.TextInputLayout>

        <com.google.android.material.textfield.TextInputLayout
            style="@style/TextInputOutlined"
            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"
                style="@style/TextInput"
                android:importantForAutofill="no"
                android:inputType="textMultiLine" />
        </com.google.android.material.textfield.TextInputLayout>

Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
        <com.google.android.material.textfield.TextInputLayout
            style="@style/TextInputOutlined"
            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"
                style="@style/TextInput"
                android:importantForAutofill="no"
                android:inputType="phone" />
        </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"
            android:textSize="16sp" />

        <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
99
100
101
102
        <RadioGroup
            android:id="@+id/radioGroupLang"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
103
            android:layout_marginTop="8dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
104
            android:checkedButton="@id/radioEn"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
105
            android:orientation="horizontal">
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
106
107
108
109
110
111
112
113
114
115
116

            <RadioButton
                android:id="@+id/radioUz"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/uzbek" />

            <RadioButton
                android:id="@+id/radioEn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
117
                android:layout_marginStart="12dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
118
119
120
121
122
123
                android:text="@string/english" />

            <RadioButton
                android:id="@+id/radioRu"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
124
                android:layout_marginStart="12dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
125
126
127
128
                android:text="@string/russian" />
        </RadioGroup>

        <RadioGroup
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
129
            android:id="@+id/radioGroupEntryType"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
130
131
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
132
            android:layout_marginTop="8dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
133
134
135
136
137
138
139
140
141
142
143
144
145
            android:checkedButton="@id/radioAuth"
            android:orientation="horizontal">

            <RadioButton
                android:id="@+id/radioAuth"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/auth" />

            <RadioButton
                android:id="@+id/radioFace"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
146
                android:layout_marginStart="12dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
147
148
149
150
                android:text="@string/face" />
        </RadioGroup>

        <RadioGroup
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
151
            android:id="@+id/radioGroupBuildMode"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
152
153
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
154
            android:layout_marginTop="8dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
            android:checkedButton="@id/radioProd"
            android:orientation="horizontal">

            <RadioButton
                android:id="@+id/radioProd"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/prod" />

            <RadioButton
                android:id="@+id/radioDev"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="16dp"
                android:text="@string/dev" />
        </RadioGroup>

Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
172
173
174
        <CheckBox
            android:id="@+id/checkboxWithPhoto"
            android:layout_width="match_parent"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
175
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
176
177
178
            android:layout_marginTop="8dp"
            android:checked="true"
            android:text="@string/with_photo" />
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
179
180
181
182
183
184
185

        <com.google.android.material.button.MaterialButton
            android:id="@+id/buttonStart"
            style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
186
            android:layout_marginTop="20dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
187
188
189
190
191
192
            android:text="@string/scan_face_data" />

        <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
193
            android:layout_marginTop="20dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
194
195
196
197
198
            android:textSize="20sp" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Javohir Savriy's avatar
2.0.9    
Javohir Savriy committed
199
            android:layout_marginTop="20dp"
Javokhir Savriev's avatar
2.0.7  
Javokhir Savriev committed
200
201
202
203
204
205
206
207
208
209
210
            android:text="@string/result_image"
            android:textSize="20sp" />

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