Android : How to apply animation only to specific views in LayoutAnimationController

on Tuesday, February 17, 2015


This question has already been asked before( here ). But there is no good answer.


I want to apply animation using LayoutAnimationController only to only few views in the ViewGroup( The viewgroup here is a ListView). How should i do that?



LayoutAnimationController lac = new LayoutAnimationController(getActivity(), AnimationUtils.loadAnimation(getActivity(), R.anim.fade_in), 0.3f);

mYearListView.setLayoutAnimation(lac);


Or by any way can i apply two types of animation in a single LayoutAnimationController? For example, for views 1 to 4, animation 1 and for views 5 to 8, i want to apply animation 2?


0 comments:

Post a Comment