I have custom scrollview written which is working fine without stylus from Tablets. When using Tablet stylus this customScrollview is allowing stylus to perform scrolling even when Scrolling is disabled.
public class CustomScrollView extends ScrollView {
private boolean enabled = false;
public CustomScrollView(Context context) {
super(context);
}
public CustomScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public CustomScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public boolean getEnabled() {
return this.enabled;
}
}