I need to display a Recyclerview that can have any amount of subheadings. Sadly I only found solutions that support a depth of one. This isn't enough for my case.
I could have something like this:
Heading 1
Subheading 1
Subsubheading 1
Subsubsubheading 1
Subheading 2
Heading 2
...
You get the idea. Futhermore, it would also be quite useful if the user can expand these headings and their content like in MS Word. How does one achieve this behaviour (if possible without external libraries)? Thank your for you support!