BouncyHorizontalScrollView.java 1.33 KB
package com.bitstrips.imoji.abv3.bottombar;

import android.content.Context;
import android.content.res.Resources;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.widget.HorizontalScrollView;

public class BouncyHorizontalScrollView
  extends HorizontalScrollView
{
  private int a;
  
  public BouncyHorizontalScrollView(Context paramContext)
  {
    this(paramContext, null);
  }
  
  public BouncyHorizontalScrollView(Context paramContext, AttributeSet paramAttributeSet)
  {
    this(paramContext, paramAttributeSet, 0);
  }
  
  public BouncyHorizontalScrollView(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
  {
    super(paramContext, paramAttributeSet, paramInt);
    this.a = ((int)(paramContext.getResources().getDisplayMetrics().densityDpi / 160.0F * 100.0F));
  }
  
  protected boolean overScrollBy(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, int paramInt8, boolean paramBoolean)
  {
    return super.overScrollBy(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6, this.a, paramInt8, paramBoolean);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/abv3/bottombar/BouncyHorizontalScrollView.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */