idcardscan_layout.xml
4.19 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
<RelativeLayout 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:id="@+id/idcardscan_layout">
<TextureView
android:id="@+id/idcardscan_layout_surface"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.megvii.idcardlib.view.IDCardNewIndicator
android:id="@+id/idcardscan_layout_newIndicator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:focusable="false" />
<com.megvii.idcardlib.view.IDCardIndicator
android:id="@+id/idcardscan_layout_indicator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:focusable="false" />
<LinearLayout
android:id="@+id/idcardscan_layout_idCardImageRel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center"
android:visibility="gone"
android:layout_marginBottom="30dip"
android:layout_alignParentBottom="true"
>
<com.megvii.idcardlib.view.AutoRatioImageview
android:id="@+id/idcardscan_layout_idCardImage"
android:layout_width="140dip"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/sfz_front"
/>
<TextView
android:id="@+id/idcardscan_layout_idCardText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffffff"
android:textSize="12sp"
android:text="请将身份证正面置于框内"
/>
</LinearLayout>
<TextView
android:id="@+id/idcardscan_layout_fps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#00ff00"
android:visibility="gone" />
<TextView
android:id="@+id/idcardscan_layout_error_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="#7f000000"
android:textColor="#ffffffff"
android:visibility="gone" />
<com.megvii.idcardlib.util.MyTextView
android:id="@+id/idcardscan_layout_topTitle"
android:layout_width="wrap_content"
android:layout_height="300dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="#7f000000"
android:textColor="#ffffffff"
android:visibility="gone" />
<TextView
android:id="@+id/idcardscan_layout_horizontalTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="32dip"
android:textColor="#ffffffff"
android:textSize="18sp" />
<TextView
android:id="@+id/idcardscan_layout_verticalTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="105dip"
android:textColor="#ffffffff"
android:textSize="18sp" />
<View
android:id="@+id/debugRectangle"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@drawable/rectangle"
android:visibility="gone"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="right"
android:layout_marginBottom="50dp">
<TextView
android:layout_width="120dp"
android:layout_height="match_parent"
android:id="@+id/text_debug_info"
android:textColor="#FFFFFFFF"
android:gravity="left"/>
</LinearLayout>
</RelativeLayout>