2015-11-09 3 views

Répondre

0

Vous pouvez utiliser cette bibliothèque: https://github.com/daimajia/AnimationEasingFunctions

Par exemple:

AnimatorSet animation = new AnimatorSet(); 
    animation.playTogether(Glider.glide(Skill.CubicEaseInOut, 500f, ObjectAnimator.ofInt(listView, "scrollY", itemView.getTop()))); 
    animation.setDuration(500); 
    animation.start(); 

Skill.CubicEaseInOut est le type d'animation acording http://easings.net/

J'espère que cette aide