title: Multi-level ExpandableListView in Android
body: <p>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:</p>
  
  <p>Here's how it's look like before opening<img src="https://i.stack.imgur.com/rVRGE.png" alt="enter image description here"></p>
  
  <p>And after opening the first option: (It's supposed to be empty)</p>
  
  <p><img src="https://i.stack.imgur.com/AhvfD.png" alt="enter image description here"></p>
  
  <p>And now open the second one: (Has 4 childs and one of them have childs of his own)</p>
  
  <p><img src="https://i.stack.imgur.com/WWug8.png" alt="enter image description here"></p>
  
  <p>As you can see the third option looks like it's been rendered another option or something on it, after clicking to open it:</p>
  
  <p><img src="https://i.stack.imgur.com/bOJd0.png" alt="enter image description here"></p>
  
  <p>It's does nothing except change the state of the arrow. At least it tries to open it...</p>
  
  <p>Here's the code:</p>
  
  <p>CatAdapter.java: (extends BaseExpandableListAdapter)
  <a href="http://pastebin.com/6yUTkMbJ" rel="nofollow noreferrer">http://pastebin.com/6yUTkMbJ</a></p>
  
  <p>Category.java:
  <a href="http://pastebin.com/E7yWwpna" rel="nofollow noreferrer">http://pastebin.com/E7yWwpna</a></p>
  
  <p>catitem.xml:
  <a href="http://pastebin.com/G5MPT3Ua" rel="nofollow noreferrer">http://pastebin.com/G5MPT3Ua</a></p>
  
  <p>The usage:
  <a href="http://pastebin.com/Wk0FqJhn" rel="nofollow noreferrer">http://pastebin.com/Wk0FqJhn</a></p>
  
  <p>Sorry for the long question, I was trying to be clear as possible.</p>
  
  <p>Thanks in advance! Sorry for my bad english!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I ended up making a custom view for this task, thank you all for your answers!</p>