Hopefully there is a solution here, I have a XML TimePicker and ScrollView in my main.xml and with the set up the TimePicker does not scroll. If I remove the ScrollView the
Found the solution, create a custom TimePicker class and then call this to override touch events:
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
// Stop ScrollView from getting involved once you interact with the View
if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) {
ViewParent p = getParent();
if (p != null)
p.requestDisallowInterceptTouchEvent(true);
}
return false;
}