On default if you swipe from left to right you scroll to the left, and vice versa.
But I want to invert this action. so if you swipe left to right the scrollview goes to the right. Is there a XML solution or do I have to do this in code?
I am pretty unsure about this but something along these lines:
Code (not really):
HorizontalScrollView hsv;
hsv.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
event.setLocation(-1*event.getX(), event.getY());
hsv.dispatchTouchEvent(ev);
return true;
}
})