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
Post a Comment