I am trying to have a specific layout in Android Studio : I want to display a list of objects which have to be separated by a date. For the moment, I'm only able to display a list of all my objects but I can't figure out how to organize my layout to have them split.
Here are some images to help you understand :
Let's say the objects I want to display have 2 attributes : date and content. Thanks to a ListView, I'm able to display the content attributes of all my objects. (all my objects are in an ArrayList which are put into the ListView thanks to an adapter)
The thing is I can't think of a correct architecture to display a date, then all the objects that have this date as their date attribute, then another date, all the objects that have that other date as their date attribute, and so on ...
A solution I thought of was to have a ListView of ListViews, the latter containing objects that would have 2 attributes : a date and a list of the objects. But doing that, I'm a bit lost with the adapters.
I don't know if I'm being clear enough, please let me know if you need further info to help me out
Thank you in advance !