I am trying to apply some kind of an animation for the ExpandableListView
. I have done some research and looks like its a right pain. I managed to apply slide animation on the expand, however i cant work out how to apply anything on collapse.
I used
How to write custom ExpandableListAdapter
for my ExpandableListView
. As it stands at the moment i apply this t oa child convertView
and it works fine on expand, but i cant figure out how it collapses.
Animation fadeAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_left_in);
convertView.startAnimation(fadeAnimation );
Would anyone be able to help or perhaps there is a better solution for this?