I'm using a RecyclerView
to display a list from my Firebase Real-time database on an Android application I'm developing. Each list item consists of a heart rate measurement e.g. 72, a date stamp string and a timestamp string of when the measurement was taken. I however want to group and display all heart rates taken on the same day, just like the way a messaging application displays messages sent and received on the same day like below
I want to display for example all heart rates taken today under a today text view and for other days under their respective text view with dates
Here is an example of the heart rate record:
"patient's_heart_rate" : {
"HdFZE8Y37DfhTb7RaXBIuvusTzn2" : {
"-LJ0a-p7KTgyagR22HZQ" : {
"heartRate" : "128\r",
"heartRateDate" : "04-08-2018",
"heartRateId" : "-LJ0a-p6SblappQIsyr0",
"heartRateTimeStamp" : "00:01:06"
},
"-LJ0a0271S6LWEDaDiAL" : {
"heartRate" : "\u00007\u0000\u00006\r",
"heartRateDate" : "04-08-2018",
"heartRateId" : "-LJ0a0271S6LWEDaDiAK",
"heartRateTimeStamp" : "00:01:06"
}
}