ExpandableRecycleView_In_Expand_Only_One_Item
private ExpandableGroup mLastExpandedGroup ;
@override public void onGroupExpanded(ExpandableGroup group) {
if (mLastExpandedGroup != null
&& !mLastExpandedGroup.equals(group)
&& adapter.isGroupExpanded(mLastExpandedGroup)) {
adapter.toggleGroup(mLastExpandedGroup);
}
mLastExpandedGroup = group;
}
@override public void onGroupExpanded(ExpandableGroup group) {
if (mLastExpandedGroup != null
&& !mLastExpandedGroup.equals(group)
&& adapter.isGroupExpanded(mLastExpandedGroup)) {
adapter.toggleGroup(mLastExpandedGroup);
}
mLastExpandedGroup = group;
}
Comments
Post a Comment