android - Nested ExpandableListview with only one child should visible at a time -


I am working on a project that requires two levels of expandable view and only one child has a time Should be open. If there is a child and if I click on the other child, then it should be closed for the last time, it should be at both levels of the expandable ListView. I have enough research but I did not find anything good Any good links and demos will be highly appreciated. Thanks

  // declared variable private constant int prev = -1; // and OnGroupExpandListener mExpandableList.setOnGroupExpandListener {NewOrGroup Expand Listener} {@Override Group Expand (int groupposition) on public null {if (prev! = - 1) {mExpandableList.collapseGroup (prev);} prev = groupPosition; }});    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -