package com.twotoasters.jazzylistview.effects;

import android.view.View;
import com.nineoldandroids.view.ViewHelper;
import com.nineoldandroids.view.ViewPropertyAnimator;
import com.twotoasters.jazzylistview.JazzyEffect;

public class SlideInEffect
    implements JazzyEffect
{

    public SlideInEffect()
    {
    }

    public void initView(View view, int i, int j)
    {
        ViewHelper.setTranslationY(view, j * (view.getHeight() / 2));
    }

    public void setupAnimation(View view, int i, int j, ViewPropertyAnimator viewpropertyanimator)
    {
        viewpropertyanimator.translationYBy(j * (-view.getHeight() / 2));
    }
}
