I use FastAdapter for RecyclerView, let say originally it is like this (all items are collapsed, so only the first level items are showed):
- Africa
- Asia
- Europe
When user expands position 1 it becomes:
- Africa
- Asia
- Afghanistan
- Burma
- Europe
How do I get the 2nd position (Europe) when they are expanded like this? Using getItem(2)
gives Afghanistan. Of course I can count manually because first level and second level uses different type
in my case, but I am asking about the simplest way. Thanks in advance.