List of usage examples for android.view ViewGroup setLayoutAnimationListener
public void setLayoutAnimationListener(Animation.AnimationListener animationListener)
From source file:com.android.contacts.list.MultiSelectContactsListFragment.java
protected void setLayoutAnimation(final ViewGroup view, int animationId) { if (view == null) { return;/* w w w.j a v a 2 s . c om*/ } view.setLayoutAnimationListener(new Animation.AnimationListener() { @Override public void onAnimationStart(Animation animation) { } @Override public void onAnimationEnd(Animation animation) { view.setLayoutAnimation(null); } @Override public void onAnimationRepeat(Animation animation) { } }); view.setLayoutAnimation(AnimationUtils.loadLayoutAnimation(getActivity(), animationId)); }