Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.twotoasters.jazzylistview.effects;
 
 
 
 public class TwirlEffect implements JazzyEffect {
    private static final int INITIAL_ROTATION_X = 80;
    private static final int INITIAL_ROTATION_Y = 70;
    private static final int INITIAL_ROTATION_Z = 10;
    @Override
    public void initView(View itemint positionint scrollDirection) {
        ViewHelper.setPivotX(itemitem.getWidth() / 2);
        ViewHelper.setPivotY(itemitem.getWidth() / 2);
        ViewHelper.setRotationX(item);
        ViewHelper.setRotationY(item * scrollDirection);
        ViewHelper.setRotation(item);
    }
    @Override
    public void setupAnimation(View itemint positionint scrollDirectionViewPropertyAnimator animator) {
    }
New to GrepCode? Check out our FAQ X