I'm trying to create a category tree from a given unknown-size nor level list of categories. So I'm trying to create a general expandable list which can contain 2+ number of levels. The general idea is to add to every child who has childs another ExpandableListView in it's layout. The problem is that the second level wont open, it looks like it rendered it over the child or something. Here's some screen-shots of the result:
Here's how it's look like before opening
And after opening the first option: (It's supposed to be empty)
And now open the second one: (Has 4 childs and one of them have childs of his own)
As you can see the third option looks like it's been rendered another option or something on it, after clicking to open it:
It's does nothing except change the state of the arrow. At least it tries to open it...
Here's the code:
CatAdapter.java: (extends BaseExpandableListAdapter) http://pastebin.com/6yUTkMbJ
Category.java: http://pastebin.com/E7yWwpna
catitem.xml: http://pastebin.com/G5MPT3Ua
The usage: http://pastebin.com/Wk0FqJhn
Sorry for the long question, I was trying to be clear as possible.
Thanks in advance! Sorry for my bad english!
Edit:
I ended up making a custom view for this task, thank you all for your answers!