29
29
android : textFontWeight =" 600"
30
30
android : textSize =" 22sp" />
31
31
</com .google.android.material.appbar.MaterialToolbar>
32
- <LinearLayout
32
+
33
+ <RelativeLayout
33
34
android : layout_width =" match_parent"
34
35
android : layout_height =" match_parent"
35
- android : orientation =" vertical"
36
36
android : layout_below =" @+id/toolbar_hub"
37
37
android : gravity =" center_horizontal"
38
+ android : orientation =" vertical"
38
39
android : weightSum =" 2" >
40
+
39
41
<RelativeLayout
40
42
android : id =" @+id/dashbottom_notif"
41
43
android : layout_width =" match_parent"
42
44
android : layout_height =" wrap_content"
43
- android : orientation = " vertical "
44
- android : layout_weight = " .9 "
45
- >
45
+ android : layout_alignParentTop = " true "
46
+ android : layout_above = " @id/ll_sos "
47
+ android : orientation = " vertical " >
46
48
47
49
<TextView
48
50
android : id =" @+id/notif_title"
49
51
android : layout_width =" match_parent"
50
52
android : layout_height =" wrap_content"
51
53
android : background =" @color/lighterSecondaryColor"
52
- android : text =" NOTIFICATIONS"
53
- android : textAlignment =" center"
54
54
android : fontFamily =" @font/nunito"
55
+ android : padding =" 10dp"
56
+ android : text =" Notifications"
57
+ android : textAlignment =" center"
55
58
android : textColor =" @color/white"
56
- android : textSize =" 24dp"
57
- />
59
+ android : textSize =" 18sp" />
58
60
59
61
<ScrollView
60
- android : layout_below =" @+id/notif_title"
61
62
android : id =" @+id/notif_list"
62
63
android : layout_width =" match_parent"
63
- android : layout_height =" match_parent" >
64
+ android : layout_height =" match_parent"
65
+ android : layout_below =" @+id/notif_title"
66
+ android : background =" @drawable/gradient_1"
67
+ android : clipToPadding =" false"
68
+ android : paddingVertical =" 12dp" >
64
69
65
70
<LinearLayout
66
71
android : layout_width =" match_parent"
77
82
<androidx .recyclerview.widget.RecyclerView
78
83
android : id =" @+id/notif_rv_layout"
79
84
android : layout_width =" match_parent"
80
- android : layout_height =" wrap_content "
85
+ android : layout_height =" match_parent "
81
86
android : layout_marginStart =" 10dp"
82
87
android : layout_marginEnd =" 10dp"
83
- android : paddingBottom =" 64dp"
84
88
app : layout_constraintVertical_bias =" 0" />
85
89
</LinearLayout >
86
90
</ScrollView >
87
91
88
92
</RelativeLayout >
93
+
89
94
<LinearLayout
90
- android : layout_below =" @id/notif_list "
95
+ android : id =" @+ id/ll_sos "
91
96
android : layout_width =" match_parent"
92
- android : layout_height =" match_parent"
93
- android : layout_marginTop =" 20dp"
94
- >
97
+ android : layout_height =" wrap_content"
98
+ android : layout_alignParentBottom =" true"
99
+ android : layout_gravity =" bottom"
100
+ android : gravity =" bottom" >
101
+
95
102
<RelativeLayout
96
103
android : id =" @+id/notif_bottom"
97
104
android : layout_width =" match_parent"
98
105
android : layout_height =" wrap_content"
99
- android : orientation = " vertical "
100
- >
106
+ android : layout_marginTop = " 18dp "
107
+ android : orientation = " vertical " >
101
108
102
109
<LinearLayout
103
110
android : id =" @+id/hub_buttons"
106
113
android : gravity =" center_horizontal"
107
114
android : orientation =" vertical" >
108
115
109
- <Button
110
- android : id =" @+id/generate_report"
111
- android : layout_width =" 200dp"
112
- android : layout_height =" wrap_content"
113
- android : backgroundTint =" @color/lightSecondaryColor"
114
- android : padding =" 10dp"
115
- android : text =" Monthly Report"
116
- android : textColor =" #455A64" />
117
-
118
- <Button
119
- android : id =" @+id/set_emergency_contacts"
120
- android : layout_width =" 200dp"
116
+ <LinearLayout
117
+ android : layout_width =" match_parent"
121
118
android : layout_height =" wrap_content"
122
- android : backgroundTint =" @color/lightSecondaryColor"
123
- android : padding =" 10dp"
124
- android : text =" Set Emergency Contact"
125
- android : textColor =" #455A64" />
119
+ android : layout_gravity =" center"
120
+ android : gravity =" center_horizontal"
121
+ android : orientation =" horizontal" >
122
+
123
+ <Button
124
+ android : id =" @+id/generate_report"
125
+ android : layout_width =" 148dp"
126
+ android : layout_height =" match_parent"
127
+ android : layout_marginEnd =" 20dp"
128
+ android : backgroundTint =" @color/lightSecondaryColor"
129
+ android : padding =" 10dp"
130
+ android : text =" Monthly Report"
131
+ android : textColor =" @color/white" />
132
+
133
+ <Button
134
+ android : id =" @+id/set_emergency_contacts"
135
+ android : layout_width =" 148dp"
136
+ android : layout_height =" match_parent"
137
+ android : layout_marginStart =" 20dp"
138
+ android : backgroundTint =" @color/lightSecondaryColor"
139
+ android : padding =" 10dp"
140
+ android : text =" Set Emergency Contact"
141
+ android : textColor =" @color/white" />
142
+ </LinearLayout >
126
143
127
144
<com .google.android.material.button.MaterialButton
128
145
android : id =" @+id/generate_alert"
129
146
style =" @style/Widget.MaterialComponents.ExtendedFloatingActionButton"
130
- android : layout_width =" 100dp "
131
- android : layout_height =" 100dp "
147
+ android : layout_width =" 72dp "
148
+ android : layout_height =" 72dp "
132
149
android : layout_margin =" 30dp"
133
150
android : backgroundTint =" #F44336"
134
151
android : text =" SOS"
135
152
android : textColor =" @color/white"
136
153
app : cornerRadius =" 50dp" />
137
-
138
154
</LinearLayout >
139
155
</RelativeLayout >
140
156
</LinearLayout >
141
157
142
- </LinearLayout >
158
+ </RelativeLayout >
143
159
144
160
</RelativeLayout >
0 commit comments