Hi,
I create Scrollview with 10 layout. I want to change the layout position by dragging.
layout_view.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent ev) { final int action = ev.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN: {
...
The problem is when i dragging DOWN/UP (When I dragging right/left it's work perfect): 1) MotionEvent.ACTION_CANCEL happen 2) the Scrollview is moving
1)How Can I disable Scrollview scrolling when I dragging my layout? 2) Do you have any idea how to stay in layout without getting MotionEvent.ACTION_CANCEL?
Thanks