If you think the Android project dexedd listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.nav.dexedd.ui;
/*fromwww.java2s.com*/import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;
/**
* GridView with new features.
*
* @author Eduardo Naveda
* @since 0.0.1
*/publicclass BetterGridView extends GridView {
public BetterGridView(Context context) {
super(context);
}
public BetterGridView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public BetterGridView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
/**
* Fix the over scroll "bounce glitch" by forcing max over scroll values to 0.
*/
@Override
protectedboolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY,
int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, 0,
0, isTouchEvent);
}
}