I need to show a list of data which can be expanded further. Here for showing the list, I've used RecyclerView, but I'm open to use any other widget too. This list should be able to do following tasks:
- Add an item at any given specific position and not only at end or start of the list
- Pinch in and Pinch out for expanding and collapsing effect
- The list will be expanded upto 6 levels so simple expandable listview wont work in this case
Eg.
- List of years
- Every year contains list of quarters
- Every quarter contains list of months
- Every month contains list of weeks
- Every week contains list of days
- Every day contains list of hours
so here I will first show all years, and any year can be further expanded to its quarters followed by months and so on
for doing this, i need to be able to add an item at a particular desired position in the list means if there are 5 years viz. 2011, 2012, 2013, 2014, 2015. I can expand only 2012 and show a list like 2011, quarter 1 of 2012, quarter 2 of 2012, quarter 3 of 2012, quarter 4 of 2012, 2013, 2014, 2015.