forked from sambitmanna/Sambit-Manna
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivity.xml
More file actions
81 lines (70 loc) · 2.56 KB
/
activity.xml
File metadata and controls
81 lines (70 loc) · 2.56 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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp">
<TextView
android:id="@+id/titleTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Heart Rate Monitor"
android:textSize="28sp"
android:textStyle="bold"
android:textColor="#2C3E50"
android:layout_marginTop="32dp"
/>
<TextureView
android:id="@+id/textureView"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginTop="30dp" />
<TextView
android:id="@+id/tv_heart_rate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Heart Rate: -- bpm"
android:textSize="22sp"
android:layout_below="@id/textureView"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp" />
<TextView
android:id="@+id/tv_spo2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SpO₂: --%"
android:textSize="18sp"
android:layout_marginTop="500dp"
android:layout_gravity="center"/>
<TextView
android:id="@+id/tv_temperature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="560dp"
android:text="Body Temp: --°C"
android:textSize="18sp" />
<TextView
android:id="@+id/tv_hrv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="600dp"
android:text="HRV: -- ms"
android:textSize="18sp" />
<TextView
android:id="@+id/tv_rr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RR: -- bpm"
android:textSize="18sp"
android:layout_marginTop="650dp"
android:layout_gravity="center_horizontal"/>
<Button
android:id="@+id/btn_start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start Measurement"
android:layout_below="@id/tv_heart_rate"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"/>
</RelativeLayout>