BouncyHorizontalScrollView.java
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
*/