Try putting this in your ExpandableListAdapter, accordion is a reference to the ExpandableListView itself Override public void onGroupExpanded(int groupPosition){ //collapse the old expanded group, if not the same //as new group to expand if(groupPosition! = lastExpandedGroupPosition){ accordion. CollapseGroup(lastExpandedGroupPosition); } super.
OnGroupExpanded(groupPosition); lastExpandedGroupPosition = groupPosition; }.
Try putting this in your ExpandableListAdapter, accordion is a reference to the ExpandableListView itself. @Override public void onGroupExpanded(int groupPosition){ //collapse the old expanded group, if not the same //as new group to expand if(groupPosition! = lastExpandedGroupPosition){ accordion.
CollapseGroup(lastExpandedGroupPosition); } super. OnGroupExpanded(groupPosition); lastExpandedGroupPosition = groupPosition; }.
1 Wow man, spot on! :) THANK YOU VERY MUCH! :D – duberton Nov 30 '10 at 16:07 1 No problem.
Did this for an app a while back. Glad it could help someone else. – danh32 Nov 30 '10 at 16:48.
Try putting this in your ExpandableListAdapter, accordion is a reference to the ExpandableListView itself. Very helpful, but as Anh Tuan mentions in the comments above, I was having problems with the ExpandableListView not then scrolling back to the top of the currently selected group (it would stay at the currently scrolled position, in the middle of the group somewhere). It's working for me.
Terms of service.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.