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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -