package com.ikea.kompis.shopping;

import android.view.View;
import android.view.ViewGroup.MarginLayoutParams;
import android.view.animation.Animation;
import android.view.animation.Transformation;

public class AnimationVerticalMove extends Animation
{
  private final int mCurrentTop;
  private final boolean mMoveUp;
  private final int mOffset;
  private final View mView;

  public AnimationVerticalMove(View paramView, int paramInt1, int paramInt2, boolean paramBoolean)
  {
    this.mView = paramView;
    this.mOffset = (Math.max(paramInt1, paramInt2) - Math.min(paramInt2, paramInt1));
    this.mCurrentTop = paramInt2;
    this.mMoveUp = paramBoolean;
  }

  protected void applyTransformation(float paramFloat, Transformation paramTransformation)
  {
    ViewGroup.MarginLayoutParams localMarginLayoutParams = (ViewGroup.MarginLayoutParams)this.mView.getLayoutParams();
    if (this.mMoveUp);
    for (localMarginLayoutParams.topMargin = (this.mCurrentTop - (int)(paramFloat * this.mOffset)); ; localMarginLayoutParams.topMargin = (this.mCurrentTop + (int)(paramFloat * this.mOffset)))
    {
      this.mView.setLayoutParams(localMarginLayoutParams);
      return;
    }
  }

  public boolean isMoveUp()
  {
    return this.mMoveUp;
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.kompis.shopping.AnimationVerticalMove
 * JD-Core Version:    0.6.2
 */