This repository was archived by the owner on Jan 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 375
Expand file tree
/
Copy pathsample_activity.xml
More file actions
200 lines (166 loc) · 6.83 KB
/
sample_activity.xml
File metadata and controls
200 lines (166 loc) · 6.83 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
tools:context=".SampleActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="8dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<CheckBox
android:id="@+id/gather_expiry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="false"
android:onClick="onExpiryToggle"
android:text="Expiry" />
<CheckBox
android:id="@+id/gather_cvv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="false"
android:text="CVV" />
<CheckBox
android:id="@+id/gather_postal_code"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:checked="false"
android:text="Postal Code" />
</LinearLayout>
<CheckBox
android:id="@+id/gather_cardholder_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Cardholder Name" />
<CheckBox
android:id="@+id/postal_code_numeric_only"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Restrict Postal Code to Numeric Only" />
<CheckBox
android:id="@+id/scan_expiry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:text="Scan Expiry" />
<CheckBox
android:id="@+id/force_manual"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Force keyboard entry (bypass scan)" />
<CheckBox
android:id="@+id/suppress_manual"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Suppress keyboard number entry" />
<CheckBox
android:id="@+id/suppress_confirmation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Suppress confirmation" />
<CheckBox
android:id="@+id/detect_only"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Detect card-ish rectangle only" />
<CheckBox
android:id="@+id/use_card_io_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Use card.io logo" />
<CheckBox
android:id="@+id/show_paypal_action_bar_icon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="PayPal icon in action bar" />
<CheckBox
android:id="@+id/keep_application_theme"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Keep application theme" />
<CheckBox
android:id="@+id/hide_torch_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hide torch button" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusableInTouchMode="true"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="Language:" />
<Spinner
android:id="@+id/language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:paddingLeft="50dp"
android:text="Digits not blurred:" />
<EditText
android:id="@+id/unblur"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:inputType="number"
android:text="4" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/scan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.4"
android:onClick="onScan"
android:text="Scan Credit Card using Card.io" />
<Button
android:id="@+id/auto_test"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:onClick="onAutotest"
android:text="Auto-test loop" />
</LinearLayout>
<Spinner
android:id="@+id/recordings"
android:layout_width="match_parent"
android:layout_height="50dp"
android:visibility="gone" />
<TextView
android:id="@+id/result"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/result_card_type_image"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/result_image"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>