|
@@ -1,195 +1,203 @@
|
1
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
3
|
xmlns:tools="http://schemas.android.com/tools"
|
4
|
4
|
android:layout_width="match_parent"
|
5
|
5
|
android:layout_height="match_parent"
|
6
|
6
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
7
|
|
- android:orientation="vertical"
|
8
|
7
|
tools:context=".ui.scanresult.ScanResultActivity">
|
9
|
8
|
|
10
|
|
- <include layout="@layout/default_toolbar"/>
|
11
|
|
-
|
12
|
|
- <ScrollView
|
|
9
|
+ <LinearLayout
|
13
|
10
|
android:layout_width="match_parent"
|
14
|
|
- android:layout_height="match_parent">
|
|
11
|
+ android:layout_height="wrap_content"
|
|
12
|
+ android:orientation="vertical">
|
|
13
|
+
|
|
14
|
+ <include layout="@layout/default_toolbar"/>
|
15
|
15
|
|
16
|
|
- <RelativeLayout
|
|
16
|
+ <ScrollView
|
|
17
|
+ android:id="@+id/scrollView"
|
17
|
18
|
android:layout_width="match_parent"
|
18
|
19
|
android:layout_height="wrap_content">
|
19
|
20
|
|
20
|
|
- <TextView
|
21
|
|
- android:id="@+id/tv_status_scan"
|
22
|
|
- style="@style/CommonText"
|
23
|
|
- android:layout_width="match_parent"
|
24
|
|
- android:layout_height="wrap_content"
|
25
|
|
- android:padding="4dp"
|
26
|
|
- android:gravity="center"
|
27
|
|
- android:layout_alignParentStart="true"
|
28
|
|
- android:layout_alignParentEnd="true"
|
29
|
|
- android:background="@drawable/bg_blue_no_rad"
|
30
|
|
- tools:text="Check Out Karyawan" />
|
31
|
|
-
|
32
|
|
- <androidx.cardview.widget.CardView
|
33
|
|
- android:id="@+id/cv_profile_bio"
|
|
21
|
+ <RelativeLayout
|
34
|
22
|
android:layout_width="match_parent"
|
35
|
|
- android:layout_height="wrap_content"
|
36
|
|
- android:elevation="12dp"
|
37
|
|
- android:layout_below="@+id/tv_status_scan"
|
38
|
|
- android:orientation="vertical"
|
39
|
|
- app:cardCornerRadius="2dp"
|
40
|
|
- app:cardUseCompatPadding="true">
|
|
23
|
+ android:layout_height="wrap_content">
|
41
|
24
|
|
42
|
|
- <LinearLayout
|
43
|
|
- android:id="@+id/ll_profile_bio"
|
|
25
|
+ <TextView
|
|
26
|
+ android:id="@+id/tv_status_scan"
|
|
27
|
+ style="@style/CommonText"
|
|
28
|
+ android:layout_width="match_parent"
|
|
29
|
+ android:layout_height="wrap_content"
|
|
30
|
+ android:padding="4dp"
|
|
31
|
+ android:gravity="center"
|
|
32
|
+ android:layout_alignParentStart="true"
|
|
33
|
+ android:layout_alignParentEnd="true"
|
|
34
|
+ android:background="@drawable/bg_blue_no_rad"
|
|
35
|
+ tools:text="Check Out Karyawan" />
|
|
36
|
+
|
|
37
|
+ <androidx.cardview.widget.CardView
|
|
38
|
+ android:id="@+id/cv_profile_bio"
|
44
|
39
|
android:layout_width="match_parent"
|
45
|
40
|
android:layout_height="wrap_content"
|
|
41
|
+ android:elevation="12dp"
|
46
|
42
|
android:layout_below="@+id/tv_status_scan"
|
47
|
|
- android:layout_margin="2dp"
|
48
|
43
|
android:orientation="vertical"
|
49
|
|
- android:padding="8dp">
|
|
44
|
+ app:cardCornerRadius="2dp"
|
|
45
|
+ app:cardUseCompatPadding="true">
|
50
|
46
|
|
51
|
47
|
<LinearLayout
|
|
48
|
+ android:id="@+id/ll_profile_bio"
|
52
|
49
|
android:layout_width="match_parent"
|
53
|
50
|
android:layout_height="wrap_content"
|
54
|
|
- android:orientation="horizontal"
|
55
|
|
- tools:ignore="UselessParent">
|
56
|
|
-
|
57
|
|
- <ImageView
|
58
|
|
- android:id="@+id/iv_profile_image"
|
59
|
|
- android:layout_width="80dp"
|
60
|
|
- android:layout_height="80dp"
|
61
|
|
- android:layout_marginStart="0dp"
|
62
|
|
- android:layout_marginEnd="0dp"
|
63
|
|
- android:src="@drawable/ic_profile_default"
|
64
|
|
- android:contentDescription="@string/cd_image" />
|
|
51
|
+ android:layout_below="@+id/tv_status_scan"
|
|
52
|
+ android:layout_margin="2dp"
|
|
53
|
+ android:orientation="vertical"
|
|
54
|
+ android:padding="8dp">
|
65
|
55
|
|
66
|
56
|
<LinearLayout
|
67
|
57
|
android:layout_width="match_parent"
|
68
|
58
|
android:layout_height="wrap_content"
|
69
|
|
- android:orientation="vertical">
|
70
|
|
-
|
71
|
|
- <TextView
|
72
|
|
- android:id="@+id/tv_rfid_number"
|
73
|
|
- style="@style/MyTextLabel"
|
74
|
|
- android:layout_width="match_parent"
|
75
|
|
- android:layout_height="wrap_content"
|
76
|
|
- android:layout_marginStart="8dp"
|
77
|
|
- android:gravity="start"
|
78
|
|
- tools:text="0009449244" />
|
79
|
|
-
|
80
|
|
- <TextView
|
81
|
|
- android:id="@+id/tv_profile_name"
|
82
|
|
- style="@style/MyTextLabel"
|
|
59
|
+ android:orientation="horizontal"
|
|
60
|
+ tools:ignore="UselessParent">
|
|
61
|
+
|
|
62
|
+ <ImageView
|
|
63
|
+ android:id="@+id/iv_profile_image"
|
|
64
|
+ android:layout_width="80dp"
|
|
65
|
+ android:layout_height="80dp"
|
|
66
|
+ android:layout_marginStart="0dp"
|
|
67
|
+ android:layout_marginEnd="0dp"
|
|
68
|
+ android:src="@drawable/ic_profile_default"
|
|
69
|
+ android:contentDescription="@string/cd_image" />
|
|
70
|
+
|
|
71
|
+ <LinearLayout
|
83
|
72
|
android:layout_width="match_parent"
|
84
|
73
|
android:layout_height="wrap_content"
|
85
|
|
- android:layout_marginStart="8dp"
|
86
|
|
- android:gravity="start"
|
87
|
|
- tools:text="HADYAN EL AUFAR" />
|
88
|
|
-
|
89
|
|
- <TextView
|
90
|
|
- android:id="@+id/tv_structural_position"
|
91
|
|
- style="@style/MyTextData"
|
92
|
|
- android:layout_width="match_parent"
|
93
|
|
- android:layout_height="wrap_content"
|
94
|
|
- android:layout_marginStart="8dp"
|
95
|
|
- android:gravity="start"
|
96
|
|
- tools:text="IT System Development Specialist" />
|
97
|
|
-
|
98
|
|
- <TextView
|
99
|
|
- android:id="@+id/tv_functional_position"
|
100
|
|
- style="@style/MyTextData"
|
101
|
|
- android:layout_width="match_parent"
|
102
|
|
- android:layout_height="wrap_content"
|
103
|
|
- android:layout_marginStart="8dp"
|
104
|
|
- android:gravity="start"
|
105
|
|
- tools:text="Engineer/Specialist" />
|
106
|
|
-
|
107
|
|
- <TextView
|
108
|
|
- android:id="@+id/tv_company_name"
|
109
|
|
- style="@style/MyTextData"
|
110
|
|
- android:layout_width="match_parent"
|
111
|
|
- android:layout_height="wrap_content"
|
112
|
|
- android:layout_marginStart="8dp"
|
113
|
|
- android:gravity="start"
|
114
|
|
- tools:text="PT. Berau Coal Energy" />
|
|
74
|
+ android:orientation="vertical">
|
|
75
|
+
|
|
76
|
+ <TextView
|
|
77
|
+ android:id="@+id/tv_rfid_number"
|
|
78
|
+ style="@style/MyTextLabel"
|
|
79
|
+ android:layout_width="match_parent"
|
|
80
|
+ android:layout_height="wrap_content"
|
|
81
|
+ android:layout_marginStart="8dp"
|
|
82
|
+ android:gravity="start"
|
|
83
|
+ tools:text="0009449244" />
|
|
84
|
+
|
|
85
|
+ <TextView
|
|
86
|
+ android:id="@+id/tv_profile_name"
|
|
87
|
+ style="@style/MyTextLabel"
|
|
88
|
+ android:layout_width="match_parent"
|
|
89
|
+ android:layout_height="wrap_content"
|
|
90
|
+ android:layout_marginStart="8dp"
|
|
91
|
+ android:gravity="start"
|
|
92
|
+ tools:text="HADYAN EL AUFAR" />
|
|
93
|
+
|
|
94
|
+ <TextView
|
|
95
|
+ android:id="@+id/tv_structural_position"
|
|
96
|
+ style="@style/MyTextData"
|
|
97
|
+ android:layout_width="match_parent"
|
|
98
|
+ android:layout_height="wrap_content"
|
|
99
|
+ android:layout_marginStart="8dp"
|
|
100
|
+ android:gravity="start"
|
|
101
|
+ tools:text="IT System Development Specialist" />
|
|
102
|
+
|
|
103
|
+ <TextView
|
|
104
|
+ android:id="@+id/tv_functional_position"
|
|
105
|
+ style="@style/MyTextData"
|
|
106
|
+ android:layout_width="match_parent"
|
|
107
|
+ android:layout_height="wrap_content"
|
|
108
|
+ android:layout_marginStart="8dp"
|
|
109
|
+ android:gravity="start"
|
|
110
|
+ tools:text="Engineer/Specialist" />
|
|
111
|
+
|
|
112
|
+ <TextView
|
|
113
|
+ android:id="@+id/tv_company_name"
|
|
114
|
+ style="@style/MyTextData"
|
|
115
|
+ android:layout_width="match_parent"
|
|
116
|
+ android:layout_height="wrap_content"
|
|
117
|
+ android:layout_marginStart="8dp"
|
|
118
|
+ android:gravity="start"
|
|
119
|
+ tools:text="PT. Berau Coal Energy" />
|
|
120
|
+
|
|
121
|
+ </LinearLayout>
|
115
|
122
|
|
116
|
123
|
</LinearLayout>
|
117
|
124
|
|
118
|
125
|
</LinearLayout>
|
119
|
126
|
|
120
|
|
- </LinearLayout>
|
|
127
|
+ </androidx.cardview.widget.CardView>
|
121
|
128
|
|
122
|
|
- </androidx.cardview.widget.CardView>
|
123
|
|
-
|
124
|
|
- <LinearLayout
|
125
|
|
- android:id="@+id/ll_profile_status"
|
126
|
|
- android:layout_width="160dp"
|
127
|
|
- android:layout_height="wrap_content"
|
128
|
|
- android:layout_below="@id/cv_profile_bio"
|
129
|
|
- android:layout_alignParentStart="true"
|
130
|
|
- android:layout_alignParentEnd="true"
|
131
|
|
- android:layout_marginTop="16dp"
|
132
|
|
- android:layout_marginBottom="16dp"
|
133
|
|
- android:layout_marginStart="100dp"
|
134
|
|
- android:layout_marginEnd="100dp"
|
135
|
|
- android:background="@color/greenPassed">
|
|
129
|
+ <LinearLayout
|
|
130
|
+ android:id="@+id/ll_profile_status"
|
|
131
|
+ android:layout_width="160dp"
|
|
132
|
+ android:layout_height="wrap_content"
|
|
133
|
+ android:layout_below="@id/cv_profile_bio"
|
|
134
|
+ android:layout_alignParentStart="true"
|
|
135
|
+ android:layout_alignParentEnd="true"
|
|
136
|
+ android:layout_marginTop="16dp"
|
|
137
|
+ android:layout_marginBottom="16dp"
|
|
138
|
+ android:layout_marginStart="100dp"
|
|
139
|
+ android:layout_marginEnd="100dp"
|
|
140
|
+ android:background="@color/greenPassed">
|
|
141
|
+
|
|
142
|
+ <TextView
|
|
143
|
+ android:id="@+id/tv_profile_status"
|
|
144
|
+ style="@style/CommonText"
|
|
145
|
+ android:layout_width="match_parent"
|
|
146
|
+ android:layout_height="wrap_content"
|
|
147
|
+ android:padding="8dp"
|
|
148
|
+ android:gravity="center"
|
|
149
|
+ tools:text="PASSED" />
|
|
150
|
+
|
|
151
|
+ </LinearLayout>
|
136
|
152
|
|
137
|
153
|
<TextView
|
138
|
|
- android:id="@+id/tv_profile_status"
|
|
154
|
+ android:id="@+id/tv_message"
|
139
|
155
|
style="@style/CommonText"
|
140
|
156
|
android:layout_width="match_parent"
|
141
|
157
|
android:layout_height="wrap_content"
|
|
158
|
+ android:textColor="@color/colorBlack"
|
|
159
|
+ android:layout_below="@id/ll_profile_status"
|
|
160
|
+ android:layout_margin="16dp"
|
142
|
161
|
android:padding="8dp"
|
143
|
162
|
android:gravity="center"
|
144
|
|
- tools:text="PASSED" />
|
145
|
|
-
|
146
|
|
- </LinearLayout>
|
|
163
|
+ android:visibility="gone"
|
|
164
|
+ tools:text="Karyawan ini sudah login pada pukul 16.32 WIB" />
|
147
|
165
|
|
148
|
|
- <TextView
|
149
|
|
- android:id="@+id/tv_message"
|
150
|
|
- style="@style/CommonText"
|
151
|
|
- android:layout_width="match_parent"
|
152
|
|
- android:layout_height="wrap_content"
|
153
|
|
- android:textColor="@color/colorBlack"
|
154
|
|
- android:layout_below="@id/ll_profile_status"
|
155
|
|
- android:layout_margin="16dp"
|
156
|
|
- android:padding="8dp"
|
157
|
|
- android:gravity="center"
|
158
|
|
- android:visibility="gone"
|
159
|
|
- tools:text="Karyawan ini sudah login pada pukul 16.32 WIB" />
|
160
|
|
-
|
161
|
|
- <androidx.recyclerview.widget.RecyclerView
|
162
|
|
- android:id="@+id/rv_group_problem"
|
163
|
|
- android:layout_width="match_parent"
|
164
|
|
- android:layout_height="wrap_content"
|
165
|
|
- android:layout_margin="8dp"
|
166
|
|
- android:layout_below="@+id/tv_message"
|
167
|
|
- tools:listitem="@layout/row_group"
|
168
|
|
- tools:itemCount="1"/>
|
169
|
|
-
|
170
|
|
- <Button
|
171
|
|
- android:id="@+id/btn_home"
|
172
|
|
- style="@style/ButtonCommon"
|
173
|
|
- android:background="@color/btn_home"
|
174
|
|
- android:layout_width="120dp"
|
175
|
|
- android:layout_height="wrap_content"
|
176
|
|
- android:layout_below="@id/rv_group_problem"
|
177
|
|
- android:layout_alignParentStart="true"
|
178
|
|
- android:layout_margin="16dp"
|
179
|
|
- android:text="@string/label_home" />
|
180
|
|
-
|
181
|
|
- <Button
|
182
|
|
- android:id="@+id/btn_scan_again"
|
183
|
|
- style="@style/ButtonCommon"
|
184
|
|
- android:background="@color/btn_scan_other"
|
185
|
|
- android:layout_width="120dp"
|
186
|
|
- android:layout_height="wrap_content"
|
187
|
|
- android:layout_below="@+id/rv_group_problem"
|
188
|
|
- android:layout_alignParentEnd="true"
|
189
|
|
- android:layout_margin="16dp"
|
190
|
|
- android:text="@string/label_scan_other" />
|
191
|
|
- </RelativeLayout>
|
192
|
|
-
|
193
|
|
- </ScrollView>
|
194
|
|
-
|
195
|
|
-</LinearLayout>
|
|
166
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
167
|
+ android:id="@+id/rv_group_problem"
|
|
168
|
+ android:layout_width="match_parent"
|
|
169
|
+ android:layout_height="wrap_content"
|
|
170
|
+ android:layout_margin="8dp"
|
|
171
|
+ android:layout_below="@+id/tv_message"
|
|
172
|
+ tools:listitem="@layout/row_group"
|
|
173
|
+ tools:itemCount="1"/>
|
|
174
|
+
|
|
175
|
+ </RelativeLayout>
|
|
176
|
+
|
|
177
|
+ </ScrollView>
|
|
178
|
+
|
|
179
|
+ </LinearLayout>
|
|
180
|
+
|
|
181
|
+ <Button
|
|
182
|
+ android:id="@+id/btn_home"
|
|
183
|
+ style="@style/ButtonCommon"
|
|
184
|
+ android:background="@color/btn_home"
|
|
185
|
+ android:layout_width="120dp"
|
|
186
|
+ android:layout_height="wrap_content"
|
|
187
|
+ android:layout_alignParentStart="true"
|
|
188
|
+ android:layout_alignParentBottom="true"
|
|
189
|
+ android:layout_margin="16dp"
|
|
190
|
+ android:text="@string/label_home" />
|
|
191
|
+
|
|
192
|
+ <Button
|
|
193
|
+ android:id="@+id/btn_scan_again"
|
|
194
|
+ style="@style/ButtonCommon"
|
|
195
|
+ android:background="@color/btn_scan_other"
|
|
196
|
+ android:layout_width="120dp"
|
|
197
|
+ android:layout_height="wrap_content"
|
|
198
|
+ android:layout_alignParentEnd="true"
|
|
199
|
+ android:layout_alignParentBottom="true"
|
|
200
|
+ android:layout_margin="16dp"
|
|
201
|
+ android:text="@string/label_scan_other" />
|
|
202
|
+
|
|
203
|
+</RelativeLayout>
|