I want to disable fling scrollview gestures and it doesn't seem to work. I thought it would be as simple as creating a base class that extends the scrollview and @ Overridingmethod onFling. but eclipse gives me an error to remove @Override:
any ideas on how to disable startup
public class ScrollViewNoFling extends ScrollView {
public ScrollViewNoFling(Context context) {
super(context);
}
public ScrollViewNoFling(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ScrollViewNoFling(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
{
return false;
}
}
source
share