react-native-mytatva-rn-sdk 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +4 -2
- package/android/src/main/AndroidManifestNew.xml +21 -10
- package/android/src/main/java/com/mytatvarnsdk/CgmTrackyLibModule.kt +6 -6
- package/android/src/main/java/com/mytatvarnsdk/MainApplication.kt +4 -6
- package/android/src/main/java/com/mytatvarnsdk/activity/SearchTransmitterActivity.kt +412 -363
- package/android/src/main/java/com/mytatvarnsdk/activity/SensorConnectSuccessActivity.kt +1 -1
- package/android/src/main/res/drawable/bg_dark_blue.xml +6 -0
- package/android/src/main/res/drawable/bg_green_progress.xml +6 -0
- package/android/src/main/res/drawable/bg_grey.xml +6 -0
- package/android/src/main/res/layout/activity_connect_sensor.xml +98 -1
- package/android/src/main/res/layout/activity_permission.xml +106 -8
- package/android/src/main/res/layout/activity_place_sensor.xml +98 -1
- package/android/src/main/res/layout/activity_place_transmitter.xml +98 -1
- package/android/src/main/res/layout/activity_search_transmitter.xml +99 -4
- package/android/src/main/res/layout/activity_sensor_connect_success.xml +98 -1
- package/android/src/main/res/values/strings.xml +1 -0
- package/android/src/main/res/values/styles.xml +71 -58
- package/ios/MyReactNativeBridge.h +4 -1
- package/ios/MyReactNativeBridge.m +124 -2
- package/ios/Support/API.swift +3 -1
- package/ios/ViewControllers/AttachTransmitterViewController.swift +3 -1
- package/ios/ViewControllers/ConnectToSensorViewController.swift +21 -10
- package/ios/ViewControllers/ConnectToTransmitterViewController.swift +24 -1
- package/ios/ViewControllers/ProvidePermissionViewController.swift +12 -0
- package/package.json +1 -1
|
@@ -57,7 +57,7 @@ class SensorConnectSuccessActivity : AppCompatActivity() {
|
|
|
57
57
|
|
|
58
58
|
private fun init() {
|
|
59
59
|
val formatter = SimpleDateFormat("hh:mm a", Locale.getDefault())
|
|
60
|
-
binding.tvDateTime.text = "Connected on ${formatter.format(Date())}"
|
|
60
|
+
binding.tvDateTime.text = "Connected on ${formatter.format(Date()).uppercase()}"
|
|
61
61
|
|
|
62
62
|
Glide.with(this)
|
|
63
63
|
.asGif()
|
|
@@ -13,12 +13,109 @@
|
|
|
13
13
|
app:layout_constraintStart_toStartOf="parent"
|
|
14
14
|
app:layout_constraintTop_toTopOf="parent" />
|
|
15
15
|
|
|
16
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
17
|
+
android:id="@+id/llProgress"
|
|
18
|
+
android:layout_width="match_parent"
|
|
19
|
+
android:layout_height="wrap_content"
|
|
20
|
+
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
|
21
|
+
|
|
22
|
+
<View
|
|
23
|
+
android:id="@+id/view1"
|
|
24
|
+
android:layout_width="0dp"
|
|
25
|
+
android:layout_height="4dp"
|
|
26
|
+
android:layout_marginHorizontal="5dp"
|
|
27
|
+
android:layout_marginVertical="10dp"
|
|
28
|
+
android:background="@drawable/bg_green_progress"
|
|
29
|
+
app:layout_constraintEnd_toStartOf="@id/view2"
|
|
30
|
+
app:layout_constraintHorizontal_chainStyle="spread"
|
|
31
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
32
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
33
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
34
|
+
|
|
35
|
+
<TextView
|
|
36
|
+
android:id="@+id/tvDivide1"
|
|
37
|
+
android:layout_width="wrap_content"
|
|
38
|
+
android:layout_height="wrap_content"
|
|
39
|
+
android:layout_marginTop="5dp"
|
|
40
|
+
android:fontFamily="@font/roboto_semibold"
|
|
41
|
+
android:text="Connect Sensor"
|
|
42
|
+
android:textColor="#2D3282"
|
|
43
|
+
android:textSize="11sp"
|
|
44
|
+
app:layout_constraintEnd_toEndOf="@+id/view3"
|
|
45
|
+
app:layout_constraintStart_toStartOf="@+id/view3"
|
|
46
|
+
app:layout_constraintTop_toBottomOf="@+id/view3" />
|
|
47
|
+
|
|
48
|
+
<View
|
|
49
|
+
android:id="@+id/view2"
|
|
50
|
+
android:layout_width="0dp"
|
|
51
|
+
android:layout_height="4dp"
|
|
52
|
+
android:layout_marginHorizontal="5dp"
|
|
53
|
+
android:layout_marginVertical="10dp"
|
|
54
|
+
android:background="@drawable/bg_green_progress"
|
|
55
|
+
app:layout_constraintEnd_toStartOf="@id/view3"
|
|
56
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
57
|
+
app:layout_constraintStart_toEndOf="@id/view1"
|
|
58
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
59
|
+
|
|
60
|
+
<TextView
|
|
61
|
+
android:id="@+id/tvDivide2"
|
|
62
|
+
android:layout_width="wrap_content"
|
|
63
|
+
android:layout_height="wrap_content"
|
|
64
|
+
android:layout_marginTop="5dp"
|
|
65
|
+
android:fontFamily="@font/roboto_semibold"
|
|
66
|
+
android:text="Place Sensor"
|
|
67
|
+
android:textColor="#D0D5DD"
|
|
68
|
+
android:textSize="11sp"
|
|
69
|
+
app:layout_constraintEnd_toEndOf="@+id/view4"
|
|
70
|
+
app:layout_constraintStart_toStartOf="@+id/view4"
|
|
71
|
+
app:layout_constraintTop_toBottomOf="@+id/view4" />
|
|
72
|
+
|
|
73
|
+
<View
|
|
74
|
+
android:id="@+id/view3"
|
|
75
|
+
android:layout_width="0dp"
|
|
76
|
+
android:layout_height="4dp"
|
|
77
|
+
android:layout_marginHorizontal="5dp"
|
|
78
|
+
android:layout_marginVertical="10dp"
|
|
79
|
+
android:background="@drawable/bg_dark_blue"
|
|
80
|
+
app:layout_constraintEnd_toStartOf="@id/view4"
|
|
81
|
+
app:layout_constraintHorizontal_weight="3"
|
|
82
|
+
app:layout_constraintStart_toEndOf="@id/view2"
|
|
83
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
84
|
+
|
|
85
|
+
<View
|
|
86
|
+
android:id="@+id/view4"
|
|
87
|
+
android:layout_width="0dp"
|
|
88
|
+
android:layout_height="4dp"
|
|
89
|
+
android:layout_marginHorizontal="5dp"
|
|
90
|
+
android:layout_marginVertical="10dp"
|
|
91
|
+
android:background="@drawable/bg_grey"
|
|
92
|
+
app:layout_constraintEnd_toStartOf="@id/view5"
|
|
93
|
+
app:layout_constraintHorizontal_weight="3"
|
|
94
|
+
app:layout_constraintStart_toEndOf="@id/view3"
|
|
95
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
96
|
+
|
|
97
|
+
<View
|
|
98
|
+
android:id="@+id/view5"
|
|
99
|
+
android:layout_width="0dp"
|
|
100
|
+
android:layout_height="4dp"
|
|
101
|
+
android:layout_marginHorizontal="5dp"
|
|
102
|
+
android:layout_marginVertical="10dp"
|
|
103
|
+
android:background="@drawable/bg_grey"
|
|
104
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
105
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
106
|
+
app:layout_constraintStart_toEndOf="@id/view4"
|
|
107
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
108
|
+
|
|
109
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
110
|
+
|
|
111
|
+
|
|
16
112
|
<View
|
|
17
113
|
android:id="@+id/divider"
|
|
18
114
|
android:layout_width="match_parent"
|
|
19
115
|
android:layout_height="2dp"
|
|
116
|
+
android:layout_marginTop="5dp"
|
|
20
117
|
android:background="#F2F4F7"
|
|
21
|
-
app:layout_constraintTop_toBottomOf="@+id/
|
|
118
|
+
app:layout_constraintTop_toBottomOf="@+id/llProgress" />
|
|
22
119
|
|
|
23
120
|
|
|
24
121
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
4
4
|
android:id="@+id/rl_pop_bottom"
|
|
5
5
|
android:layout_width="match_parent"
|
|
6
|
-
android:layout_height="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
android:background="@color/white">
|
|
7
8
|
|
|
8
9
|
<include
|
|
9
10
|
android:id="@+id/toolbar"
|
|
@@ -12,14 +13,110 @@
|
|
|
12
13
|
app:layout_constraintStart_toStartOf="parent"
|
|
13
14
|
app:layout_constraintTop_toTopOf="parent" />
|
|
14
15
|
|
|
16
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
17
|
+
android:id="@+id/llProgress"
|
|
18
|
+
android:layout_width="match_parent"
|
|
19
|
+
android:layout_height="wrap_content"
|
|
20
|
+
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
|
21
|
+
|
|
22
|
+
<View
|
|
23
|
+
android:id="@+id/view1"
|
|
24
|
+
android:layout_width="0dp"
|
|
25
|
+
android:layout_height="4dp"
|
|
26
|
+
android:layout_marginHorizontal="5dp"
|
|
27
|
+
android:layout_marginVertical="10dp"
|
|
28
|
+
android:background="@drawable/bg_dark_blue"
|
|
29
|
+
app:layout_constraintEnd_toStartOf="@id/view2"
|
|
30
|
+
app:layout_constraintHorizontal_chainStyle="spread"
|
|
31
|
+
app:layout_constraintHorizontal_weight="3"
|
|
32
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
33
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
34
|
+
|
|
35
|
+
<TextView
|
|
36
|
+
android:id="@+id/tvDivide1"
|
|
37
|
+
android:layout_width="wrap_content"
|
|
38
|
+
android:layout_height="wrap_content"
|
|
39
|
+
android:layout_marginTop="5dp"
|
|
40
|
+
android:fontFamily="@font/roboto_semibold"
|
|
41
|
+
android:text="Provide Permission"
|
|
42
|
+
android:textColor="#2D3282"
|
|
43
|
+
android:textSize="11sp"
|
|
44
|
+
app:layout_constraintEnd_toEndOf="@+id/view1"
|
|
45
|
+
app:layout_constraintStart_toStartOf="@+id/view1"
|
|
46
|
+
app:layout_constraintTop_toBottomOf="@+id/view1" />
|
|
47
|
+
|
|
48
|
+
<View
|
|
49
|
+
android:id="@+id/view2"
|
|
50
|
+
android:layout_width="0dp"
|
|
51
|
+
android:layout_height="4dp"
|
|
52
|
+
android:layout_marginHorizontal="5dp"
|
|
53
|
+
android:layout_marginVertical="10dp"
|
|
54
|
+
android:background="@drawable/bg_grey"
|
|
55
|
+
app:layout_constraintEnd_toStartOf="@id/view3"
|
|
56
|
+
app:layout_constraintHorizontal_weight="3"
|
|
57
|
+
app:layout_constraintStart_toEndOf="@id/view1"
|
|
58
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
59
|
+
|
|
60
|
+
<TextView
|
|
61
|
+
android:id="@+id/tvDivide2"
|
|
62
|
+
android:layout_width="wrap_content"
|
|
63
|
+
android:layout_height="wrap_content"
|
|
64
|
+
android:layout_marginTop="5dp"
|
|
65
|
+
android:fontFamily="@font/roboto_semibold"
|
|
66
|
+
android:text="Connect Transmitter"
|
|
67
|
+
android:textColor="#D0D5DD"
|
|
68
|
+
android:textSize="11sp"
|
|
69
|
+
app:layout_constraintEnd_toEndOf="@+id/view2"
|
|
70
|
+
app:layout_constraintStart_toStartOf="@+id/view2"
|
|
71
|
+
app:layout_constraintTop_toBottomOf="@+id/view2" />
|
|
72
|
+
|
|
73
|
+
<View
|
|
74
|
+
android:id="@+id/view3"
|
|
75
|
+
android:layout_width="0dp"
|
|
76
|
+
android:layout_height="4dp"
|
|
77
|
+
android:layout_marginHorizontal="5dp"
|
|
78
|
+
android:layout_marginVertical="10dp"
|
|
79
|
+
android:background="@drawable/bg_grey"
|
|
80
|
+
app:layout_constraintEnd_toStartOf="@id/view4"
|
|
81
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
82
|
+
app:layout_constraintStart_toEndOf="@id/view2"
|
|
83
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
84
|
+
|
|
85
|
+
<View
|
|
86
|
+
android:id="@+id/view4"
|
|
87
|
+
android:layout_width="0dp"
|
|
88
|
+
android:layout_height="4dp"
|
|
89
|
+
android:layout_marginHorizontal="5dp"
|
|
90
|
+
android:layout_marginVertical="10dp"
|
|
91
|
+
android:background="@drawable/bg_grey"
|
|
92
|
+
app:layout_constraintEnd_toStartOf="@id/view5"
|
|
93
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
94
|
+
app:layout_constraintStart_toEndOf="@id/view3"
|
|
95
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
96
|
+
|
|
97
|
+
<View
|
|
98
|
+
android:id="@+id/view5"
|
|
99
|
+
android:layout_width="0dp"
|
|
100
|
+
android:layout_height="4dp"
|
|
101
|
+
android:layout_marginHorizontal="5dp"
|
|
102
|
+
android:layout_marginVertical="10dp"
|
|
103
|
+
android:background="@drawable/bg_grey"
|
|
104
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
105
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
106
|
+
app:layout_constraintStart_toEndOf="@id/view4"
|
|
107
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
108
|
+
|
|
109
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
110
|
+
|
|
111
|
+
|
|
15
112
|
<View
|
|
16
113
|
android:id="@+id/divider"
|
|
17
114
|
android:layout_width="match_parent"
|
|
18
115
|
android:layout_height="2dp"
|
|
116
|
+
android:layout_marginTop="5dp"
|
|
19
117
|
android:background="#F2F4F7"
|
|
20
|
-
app:layout_constraintTop_toBottomOf="@+id/
|
|
118
|
+
app:layout_constraintTop_toBottomOf="@+id/llProgress" />
|
|
21
119
|
|
|
22
|
-
<!-- Step 1 Text -->
|
|
23
120
|
<TextView
|
|
24
121
|
android:id="@+id/tvStep"
|
|
25
122
|
android:layout_width="wrap_content"
|
|
@@ -109,10 +206,10 @@
|
|
|
109
206
|
app:cardBackgroundColor="#F5F5F5"
|
|
110
207
|
app:cardCornerRadius="10dp"
|
|
111
208
|
app:cardElevation="0dp"
|
|
112
|
-
app:contentPaddingBottom="
|
|
209
|
+
app:contentPaddingBottom="8dp"
|
|
113
210
|
app:contentPaddingLeft="10dp"
|
|
114
211
|
app:contentPaddingRight="10dp"
|
|
115
|
-
app:contentPaddingTop="
|
|
212
|
+
app:contentPaddingTop="8dp"
|
|
116
213
|
app:layout_constraintEnd_toEndOf="parent"
|
|
117
214
|
app:layout_constraintStart_toStartOf="parent"
|
|
118
215
|
app:layout_constraintTop_toBottomOf="@+id/tvBluetooth">
|
|
@@ -124,7 +221,8 @@
|
|
|
124
221
|
|
|
125
222
|
<TextView
|
|
126
223
|
android:id="@+id/tvBluetoothHelp"
|
|
127
|
-
android:layout_width="
|
|
224
|
+
android:layout_width="0dp"
|
|
225
|
+
android:layout_weight="1"
|
|
128
226
|
android:layout_height="wrap_content"
|
|
129
227
|
android:fontFamily="@font/roboto_regular"
|
|
130
228
|
android:text="Having trouble with bluetooth permissions? "
|
|
@@ -139,8 +237,8 @@
|
|
|
139
237
|
android:layout_width="wrap_content"
|
|
140
238
|
android:layout_height="wrap_content"
|
|
141
239
|
android:fontFamily="@font/roboto_semibold"
|
|
142
|
-
android:text="
|
|
143
|
-
android:textColor="#
|
|
240
|
+
android:text="@string/txt_know_more"
|
|
241
|
+
android:textColor="#299D6B"
|
|
144
242
|
android:textSize="12sp"
|
|
145
243
|
app:layout_constraintBottom_toBottomOf="@+id/tvBluetoothHelp"
|
|
146
244
|
app:layout_constraintStart_toEndOf="@+id/tvBluetoothHelp"
|
|
@@ -23,12 +23,109 @@
|
|
|
23
23
|
app:layout_constraintStart_toStartOf="parent"
|
|
24
24
|
app:layout_constraintTop_toTopOf="parent" />
|
|
25
25
|
|
|
26
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
27
|
+
android:id="@+id/llProgress"
|
|
28
|
+
android:layout_width="match_parent"
|
|
29
|
+
android:layout_height="wrap_content"
|
|
30
|
+
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
|
31
|
+
|
|
32
|
+
<View
|
|
33
|
+
android:id="@+id/view1"
|
|
34
|
+
android:layout_width="0dp"
|
|
35
|
+
android:layout_height="4dp"
|
|
36
|
+
android:layout_marginHorizontal="5dp"
|
|
37
|
+
android:layout_marginVertical="10dp"
|
|
38
|
+
android:background="@drawable/bg_green_progress"
|
|
39
|
+
app:layout_constraintEnd_toStartOf="@id/view2"
|
|
40
|
+
app:layout_constraintHorizontal_chainStyle="spread"
|
|
41
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
42
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
43
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
44
|
+
|
|
45
|
+
<TextView
|
|
46
|
+
android:id="@+id/tvDivide1"
|
|
47
|
+
android:layout_width="wrap_content"
|
|
48
|
+
android:layout_height="wrap_content"
|
|
49
|
+
android:layout_marginTop="5dp"
|
|
50
|
+
android:fontFamily="@font/roboto_semibold"
|
|
51
|
+
android:text="Place Sensor"
|
|
52
|
+
android:textColor="#2D3282"
|
|
53
|
+
android:textSize="11sp"
|
|
54
|
+
app:layout_constraintEnd_toEndOf="@+id/view4"
|
|
55
|
+
app:layout_constraintStart_toStartOf="@+id/view4"
|
|
56
|
+
app:layout_constraintTop_toBottomOf="@+id/view4" />
|
|
57
|
+
|
|
58
|
+
<View
|
|
59
|
+
android:id="@+id/view2"
|
|
60
|
+
android:layout_width="0dp"
|
|
61
|
+
android:layout_height="4dp"
|
|
62
|
+
android:layout_marginHorizontal="5dp"
|
|
63
|
+
android:layout_marginVertical="10dp"
|
|
64
|
+
android:background="@drawable/bg_green_progress"
|
|
65
|
+
app:layout_constraintEnd_toStartOf="@id/view3"
|
|
66
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
67
|
+
app:layout_constraintStart_toEndOf="@id/view1"
|
|
68
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
69
|
+
|
|
70
|
+
<TextView
|
|
71
|
+
android:id="@+id/tvDivide2"
|
|
72
|
+
android:layout_width="wrap_content"
|
|
73
|
+
android:layout_height="wrap_content"
|
|
74
|
+
android:layout_marginTop="5dp"
|
|
75
|
+
android:fontFamily="@font/roboto_semibold"
|
|
76
|
+
android:text="Place Transmitter"
|
|
77
|
+
android:textColor="#D0D5DD"
|
|
78
|
+
android:textSize="11sp"
|
|
79
|
+
app:layout_constraintEnd_toEndOf="@+id/view5"
|
|
80
|
+
app:layout_constraintStart_toStartOf="@+id/view5"
|
|
81
|
+
app:layout_constraintTop_toBottomOf="@+id/view5" />
|
|
82
|
+
|
|
83
|
+
<View
|
|
84
|
+
android:id="@+id/view3"
|
|
85
|
+
android:layout_width="0dp"
|
|
86
|
+
android:layout_height="4dp"
|
|
87
|
+
android:layout_marginHorizontal="5dp"
|
|
88
|
+
android:layout_marginVertical="10dp"
|
|
89
|
+
android:background="@drawable/bg_green_progress"
|
|
90
|
+
app:layout_constraintEnd_toStartOf="@id/view4"
|
|
91
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
92
|
+
app:layout_constraintStart_toEndOf="@id/view2"
|
|
93
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
94
|
+
|
|
95
|
+
<View
|
|
96
|
+
android:id="@+id/view4"
|
|
97
|
+
android:layout_width="0dp"
|
|
98
|
+
android:layout_height="4dp"
|
|
99
|
+
android:layout_marginHorizontal="5dp"
|
|
100
|
+
android:layout_marginVertical="10dp"
|
|
101
|
+
android:background="@drawable/bg_dark_blue"
|
|
102
|
+
app:layout_constraintEnd_toStartOf="@id/view5"
|
|
103
|
+
app:layout_constraintHorizontal_weight="3"
|
|
104
|
+
app:layout_constraintStart_toEndOf="@id/view3"
|
|
105
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
106
|
+
|
|
107
|
+
<View
|
|
108
|
+
android:id="@+id/view5"
|
|
109
|
+
android:layout_width="0dp"
|
|
110
|
+
android:layout_height="4dp"
|
|
111
|
+
android:layout_marginHorizontal="5dp"
|
|
112
|
+
android:layout_marginVertical="10dp"
|
|
113
|
+
android:background="@drawable/bg_grey"
|
|
114
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
115
|
+
app:layout_constraintHorizontal_weight="3"
|
|
116
|
+
app:layout_constraintStart_toEndOf="@id/view4"
|
|
117
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
118
|
+
|
|
119
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
120
|
+
|
|
121
|
+
|
|
26
122
|
<View
|
|
27
123
|
android:id="@+id/divider"
|
|
28
124
|
android:layout_width="match_parent"
|
|
29
125
|
android:layout_height="2dp"
|
|
30
126
|
android:background="#F2F4F7"
|
|
31
|
-
|
|
127
|
+
android:layout_marginTop="5dp"
|
|
128
|
+
app:layout_constraintTop_toBottomOf="@+id/llProgress" />
|
|
32
129
|
|
|
33
130
|
<!-- Main Content -->
|
|
34
131
|
<TextView
|
|
@@ -23,12 +23,109 @@
|
|
|
23
23
|
app:layout_constraintStart_toStartOf="parent"
|
|
24
24
|
app:layout_constraintTop_toTopOf="parent" />
|
|
25
25
|
|
|
26
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
27
|
+
android:id="@+id/llProgress"
|
|
28
|
+
android:layout_width="match_parent"
|
|
29
|
+
android:layout_height="wrap_content"
|
|
30
|
+
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
|
31
|
+
|
|
32
|
+
<View
|
|
33
|
+
android:id="@+id/view1"
|
|
34
|
+
android:layout_width="0dp"
|
|
35
|
+
android:layout_height="4dp"
|
|
36
|
+
android:layout_marginHorizontal="5dp"
|
|
37
|
+
android:layout_marginVertical="10dp"
|
|
38
|
+
android:background="@drawable/bg_green_progress"
|
|
39
|
+
app:layout_constraintEnd_toStartOf="@id/view2"
|
|
40
|
+
app:layout_constraintHorizontal_chainStyle="spread"
|
|
41
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
42
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
43
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
44
|
+
|
|
45
|
+
<TextView
|
|
46
|
+
android:id="@+id/tvDivide1"
|
|
47
|
+
android:layout_width="wrap_content"
|
|
48
|
+
android:layout_height="wrap_content"
|
|
49
|
+
android:layout_marginTop="5dp"
|
|
50
|
+
android:fontFamily="@font/roboto_semibold"
|
|
51
|
+
android:text="Place Sensor"
|
|
52
|
+
android:textColor="#299D6B"
|
|
53
|
+
android:textSize="11sp"
|
|
54
|
+
app:layout_constraintEnd_toEndOf="@+id/view4"
|
|
55
|
+
app:layout_constraintStart_toStartOf="@+id/view4"
|
|
56
|
+
app:layout_constraintTop_toBottomOf="@+id/view4" />
|
|
57
|
+
|
|
58
|
+
<View
|
|
59
|
+
android:id="@+id/view2"
|
|
60
|
+
android:layout_width="0dp"
|
|
61
|
+
android:layout_height="4dp"
|
|
62
|
+
android:layout_marginHorizontal="5dp"
|
|
63
|
+
android:layout_marginVertical="10dp"
|
|
64
|
+
android:background="@drawable/bg_green_progress"
|
|
65
|
+
app:layout_constraintEnd_toStartOf="@id/view3"
|
|
66
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
67
|
+
app:layout_constraintStart_toEndOf="@id/view1"
|
|
68
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
69
|
+
|
|
70
|
+
<TextView
|
|
71
|
+
android:id="@+id/tvDivide2"
|
|
72
|
+
android:layout_width="wrap_content"
|
|
73
|
+
android:layout_height="wrap_content"
|
|
74
|
+
android:layout_marginTop="5dp"
|
|
75
|
+
android:fontFamily="@font/roboto_semibold"
|
|
76
|
+
android:text="Place Transmitter"
|
|
77
|
+
android:textColor="#2D3282"
|
|
78
|
+
android:textSize="11sp"
|
|
79
|
+
app:layout_constraintEnd_toEndOf="@+id/view5"
|
|
80
|
+
app:layout_constraintStart_toStartOf="@+id/view5"
|
|
81
|
+
app:layout_constraintTop_toBottomOf="@+id/view5" />
|
|
82
|
+
|
|
83
|
+
<View
|
|
84
|
+
android:id="@+id/view3"
|
|
85
|
+
android:layout_width="0dp"
|
|
86
|
+
android:layout_height="4dp"
|
|
87
|
+
android:layout_marginHorizontal="5dp"
|
|
88
|
+
android:layout_marginVertical="10dp"
|
|
89
|
+
android:background="@drawable/bg_green_progress"
|
|
90
|
+
app:layout_constraintEnd_toStartOf="@id/view4"
|
|
91
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
92
|
+
app:layout_constraintStart_toEndOf="@id/view2"
|
|
93
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
94
|
+
|
|
95
|
+
<View
|
|
96
|
+
android:id="@+id/view4"
|
|
97
|
+
android:layout_width="0dp"
|
|
98
|
+
android:layout_height="4dp"
|
|
99
|
+
android:layout_marginHorizontal="5dp"
|
|
100
|
+
android:layout_marginVertical="10dp"
|
|
101
|
+
android:background="@drawable/bg_green_progress"
|
|
102
|
+
app:layout_constraintEnd_toStartOf="@id/view5"
|
|
103
|
+
app:layout_constraintHorizontal_weight="3"
|
|
104
|
+
app:layout_constraintStart_toEndOf="@id/view3"
|
|
105
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
106
|
+
|
|
107
|
+
<View
|
|
108
|
+
android:id="@+id/view5"
|
|
109
|
+
android:layout_width="0dp"
|
|
110
|
+
android:layout_height="4dp"
|
|
111
|
+
android:layout_marginHorizontal="5dp"
|
|
112
|
+
android:layout_marginVertical="10dp"
|
|
113
|
+
android:background="@drawable/bg_dark_blue"
|
|
114
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
115
|
+
app:layout_constraintHorizontal_weight="3"
|
|
116
|
+
app:layout_constraintStart_toEndOf="@id/view4"
|
|
117
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
118
|
+
|
|
119
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
120
|
+
|
|
121
|
+
|
|
26
122
|
<View
|
|
27
123
|
android:id="@+id/divider"
|
|
28
124
|
android:layout_width="match_parent"
|
|
29
125
|
android:layout_height="2dp"
|
|
126
|
+
android:layout_marginTop="5dp"
|
|
30
127
|
android:background="#F2F4F7"
|
|
31
|
-
app:layout_constraintTop_toBottomOf="@+id/
|
|
128
|
+
app:layout_constraintTop_toBottomOf="@+id/llProgress" />
|
|
32
129
|
|
|
33
130
|
<!-- Main Content -->
|
|
34
131
|
<TextView
|
|
@@ -13,13 +13,108 @@
|
|
|
13
13
|
app:layout_constraintStart_toStartOf="parent"
|
|
14
14
|
app:layout_constraintTop_toTopOf="parent" />
|
|
15
15
|
|
|
16
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
17
|
+
android:id="@+id/llProgress"
|
|
18
|
+
android:layout_width="match_parent"
|
|
19
|
+
android:layout_height="wrap_content"
|
|
20
|
+
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
|
21
|
+
|
|
22
|
+
<View
|
|
23
|
+
android:id="@+id/view1"
|
|
24
|
+
android:layout_width="0dp"
|
|
25
|
+
android:layout_height="4dp"
|
|
26
|
+
android:layout_marginHorizontal="5dp"
|
|
27
|
+
android:layout_marginVertical="10dp"
|
|
28
|
+
android:background="@drawable/bg_green_progress"
|
|
29
|
+
app:layout_constraintEnd_toStartOf="@id/view2"
|
|
30
|
+
app:layout_constraintHorizontal_chainStyle="spread"
|
|
31
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
32
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
33
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
34
|
+
|
|
35
|
+
<TextView
|
|
36
|
+
android:id="@+id/tvDivide1"
|
|
37
|
+
android:layout_width="wrap_content"
|
|
38
|
+
android:layout_height="wrap_content"
|
|
39
|
+
android:layout_marginTop="5dp"
|
|
40
|
+
android:fontFamily="@font/roboto_semibold"
|
|
41
|
+
android:text="Connect Sensor"
|
|
42
|
+
android:textColor="#D0D5DD"
|
|
43
|
+
android:textSize="11sp"
|
|
44
|
+
app:layout_constraintEnd_toEndOf="@+id/view3"
|
|
45
|
+
app:layout_constraintStart_toStartOf="@+id/view3"
|
|
46
|
+
app:layout_constraintTop_toBottomOf="@+id/view3" />
|
|
47
|
+
|
|
48
|
+
<View
|
|
49
|
+
android:id="@+id/view2"
|
|
50
|
+
android:layout_width="0dp"
|
|
51
|
+
android:layout_height="4dp"
|
|
52
|
+
android:layout_marginHorizontal="5dp"
|
|
53
|
+
android:layout_marginVertical="10dp"
|
|
54
|
+
android:background="@drawable/bg_dark_blue"
|
|
55
|
+
app:layout_constraintEnd_toStartOf="@id/view3"
|
|
56
|
+
app:layout_constraintHorizontal_weight="3"
|
|
57
|
+
app:layout_constraintStart_toEndOf="@id/view1"
|
|
58
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
59
|
+
|
|
60
|
+
<TextView
|
|
61
|
+
android:id="@+id/tvDivide2"
|
|
62
|
+
android:layout_width="wrap_content"
|
|
63
|
+
android:layout_height="wrap_content"
|
|
64
|
+
android:layout_marginTop="5dp"
|
|
65
|
+
android:fontFamily="@font/roboto_semibold"
|
|
66
|
+
android:text="Connect Transmitter"
|
|
67
|
+
android:textColor="#2D3282"
|
|
68
|
+
android:textSize="11sp"
|
|
69
|
+
app:layout_constraintEnd_toEndOf="@+id/view2"
|
|
70
|
+
app:layout_constraintStart_toStartOf="@+id/view2"
|
|
71
|
+
app:layout_constraintTop_toBottomOf="@+id/view2" />
|
|
72
|
+
|
|
73
|
+
<View
|
|
74
|
+
android:id="@+id/view3"
|
|
75
|
+
android:layout_width="0dp"
|
|
76
|
+
android:layout_height="4dp"
|
|
77
|
+
android:layout_marginHorizontal="5dp"
|
|
78
|
+
android:layout_marginVertical="10dp"
|
|
79
|
+
android:background="@drawable/bg_grey"
|
|
80
|
+
app:layout_constraintEnd_toStartOf="@id/view4"
|
|
81
|
+
app:layout_constraintHorizontal_weight="3"
|
|
82
|
+
app:layout_constraintStart_toEndOf="@id/view2"
|
|
83
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
84
|
+
|
|
85
|
+
<View
|
|
86
|
+
android:id="@+id/view4"
|
|
87
|
+
android:layout_width="0dp"
|
|
88
|
+
android:layout_height="4dp"
|
|
89
|
+
android:layout_marginHorizontal="5dp"
|
|
90
|
+
android:layout_marginVertical="10dp"
|
|
91
|
+
android:background="@drawable/bg_grey"
|
|
92
|
+
app:layout_constraintEnd_toStartOf="@id/view5"
|
|
93
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
94
|
+
app:layout_constraintStart_toEndOf="@id/view3"
|
|
95
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
96
|
+
|
|
97
|
+
<View
|
|
98
|
+
android:id="@+id/view5"
|
|
99
|
+
android:layout_width="0dp"
|
|
100
|
+
android:layout_height="4dp"
|
|
101
|
+
android:layout_marginHorizontal="5dp"
|
|
102
|
+
android:layout_marginVertical="10dp"
|
|
103
|
+
android:background="@drawable/bg_grey"
|
|
104
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
105
|
+
app:layout_constraintHorizontal_weight="1.3"
|
|
106
|
+
app:layout_constraintStart_toEndOf="@id/view4"
|
|
107
|
+
app:layout_constraintTop_toTopOf="parent" />
|
|
108
|
+
|
|
109
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
110
|
+
|
|
16
111
|
<View
|
|
17
112
|
android:id="@+id/divider"
|
|
18
113
|
android:layout_width="match_parent"
|
|
19
114
|
android:layout_height="2dp"
|
|
115
|
+
android:layout_marginTop="5dp"
|
|
20
116
|
android:background="#F2F4F7"
|
|
21
|
-
app:layout_constraintTop_toBottomOf="@+id/
|
|
22
|
-
|
|
117
|
+
app:layout_constraintTop_toBottomOf="@+id/llProgress" />
|
|
23
118
|
|
|
24
119
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
25
120
|
android:id="@+id/clMain"
|
|
@@ -596,8 +691,8 @@
|
|
|
596
691
|
android:layout_width="20dp"
|
|
597
692
|
android:layout_height="20dp"
|
|
598
693
|
android:layout_gravity="center_vertical"
|
|
599
|
-
app:
|
|
600
|
-
app:
|
|
694
|
+
app:srcCompat="@drawable/ic_play"
|
|
695
|
+
app:tint="#2D3282" />
|
|
601
696
|
|
|
602
697
|
<androidx.appcompat.widget.AppCompatTextView
|
|
603
698
|
android:layout_width="wrap_content"
|