Nothing complicated.One additional overrided method and one additional layout. Now deeper.I will make a calendar of birthdays of Russian poets and writers. First you need three xml markup. Main screen and two holders: header and data.

Also we need data-classes for each datatype and its parent class:

Now warming up adapter:

Drop some data in MainActivity.kt and run:

All code, as always, on my github.

Leave a Reply

Close Menu