1

Implementing OnTouchListener in GridView

view story
linux-howto

http://stackoverflow.com – I have implemented a calendar view that changes its month when I "scroll" it: If I scroll from right to left, it passes to the next month, and if I scroll from left to right, it will go back to the previous month. This is my implementation: SimpleOnGestureListener listener = new SimpleOnGestureListener() { @Override public boolean onScroll(final MotionEvent e1, final MotionEvent e2, final float distanceX, final float distanceY) { if (working || lastX == e1.getX()) { return true; } final float p1 = e1.getX() (HowTos)