I'm trying to make the childs of my ExpandableListView to show up with an animation. Since I'm using the Android 2.2 API, I can't use the expandGroup(int groupPos, boolean animate) method
I'm using an animation I got from here: Android animate drop down/up view proper
and I'm setting it to my convertView in the getChildView method of my ExpandableListView Adapter like this:
public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
View convertView, ViewGroup parent) {
...
ExpandCollapseAnimation animation = new ExpandCollapseAnimation(convertView, 500, 0);
convertView.setAnimation(animation);
return convertView;
}
When I click a Group of the ExpandableListView, first it shows all the childs with no animation, and then immediately does the expand animation on all childs like I want.
I need it to just show the animations. Any Help would be very greatful.