Y
Y
Yuri2015-11-28 14:49:04
Android
Yuri, 2015-11-28 14:49:04

How to make it easier to work with SimpleExpandableListAdapter?

I have a few questions about this adapter (you will already excuse that the topic title is not quite correct).
1) Why use map and not list? Anyway, after all, we specify the names by which we will extract the data and display them in the TextView.
2) How can one humanly declare such a list in xml? No, it's clear that you can separately declare string-array for group names, then string-array for nested elements for each group, and then manually add all this manually. And I understand that you still need to use your hands. But I can’t figure it out, but how would I place groups + childs in xml in one "crowd"? And then how to parse it all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasilij Aleksashin, 2015-12-03
@yshinkarev

1. If you use List, then this is a different adapter.
2. It's like drawing your own.
Here is an example how to use SimpleExpandableListAdapter: startandroid.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question