Skip to content

Instantly share code, notes, and snippets.

@icastell
Created February 19, 2013 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icastell/4986543 to your computer and use it in GitHub Desktop.
Save icastell/4986543 to your computer and use it in GitHub Desktop.
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View v = super.getView(position, convertView, parent);
if(position>lastAnimatedPosition){
v.setRotationX(80);
v.setTranslationY(400);
v.animate()
.rotationX(0)
.translationY(0)
.setDuration(600)
.setStartDelay(150)
.setInterpolator(new DecelerateInterpolator());
lastAnimation = position;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment