-
Notifications
You must be signed in to change notification settings - Fork 629
/
selfie_scan_fragment.xml
116 lines (101 loc) · 4.79 KB
/
selfie_scan_fragment.xml
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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
android:layout_marginTop="@dimen/page_vertical_margin"
android:layout_marginBottom="@dimen/page_vertical_margin"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_marginStart="@dimen/page_horizontal_margin"
android:layout_marginEnd="@dimen/page_horizontal_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/header_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textSize="@dimen/scan_title_text_size"
android:text="@string/selfie_captures"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toTopOf="@id/message"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Front of driver's license" />
<TextView
android:id="@+id/message"
android:layout_width="0dp"
android:lines="3"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/page_vertical_margin"
app:layout_constraintBottom_toTopOf="@id/scanning_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/header_title"
tools:text="Position your driver's license in the center of the frame" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/scanning_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:visibility="visible"
app:cardCornerRadius="@dimen/view_finder_corner_radius"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/message">
<com.stripe.android.camera.scanui.CameraView
android:id="@+id/camera_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:viewFinderType="fill" />
<View
android:id="@+id/flash_mask"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0"
android:background="@color/flash_mask_color"
android:contentDescription="@string/flash_mask" />
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
<ScrollView
android:id="@+id/result_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:visibility="gone"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/captured_images"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<CheckBox
android:id="@+id/allow_image_collection"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/page_horizontal_margin"
android:layout_marginEnd="@dimen/page_horizontal_margin"
android:layout_marginTop="20dp" />
</LinearLayout>
</ScrollView>
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:id="@+id/padding"
android:layout_weight="1" />
<com.stripe.android.identity.ui.LoadingButton
android:id="@+id/kontinue"
android:layout_marginStart="@dimen/page_horizontal_margin"
android:layout_marginEnd="@dimen/page_horizontal_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" />
</LinearLayout>