0

image.1:Firebase attendance record structure

I am storing attendance as in image.1, attendance -> date -> name : id. I fetched that data into recycler view as a list of dates as in image.2 image.2:Recycler View containing dates list. I implemented a model and adapter to fetch dates, but i have 2 views in recycler view which shows present or absent, which i want to put through a function by checking if the date value fetched earlier has a child set of name:id then mark present. i checked it through database reference;but i don't know how to update values of presence in the view. what to put in the function to do that? Hope i am clear with what i am trying to do? Any help would be appreciable.

note: i already tried doing this stuff using the same modal with a new constructor, but that gives me empty views as in image.2.

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734
Any one
  • 11
  • 5

0 Answers0