expandableListView.setOnGroupExpandListener(new OnGroupExpandListener(){ @Override public void onGroupExpand(int groupPosition) { //保证每次只展开一组 int count=expandableListView.getExpandableListAdapter().getGroupCount(); for(int i=0;i<count; i++){ if(groupPosition != i){ expandableListView.collapseGroup(i); } } } });

 

相关文章:

  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-10-27
  • 2021-09-28
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2021-06-14
  • 2022-12-23
  • 2021-10-30
  • 2021-04-16
  • 2022-02-25
相关资源
相似解决方案