I want to develop something like the home screen of the Android's devices, where you can go from one main home screen to another by passing the finger across the screen. Something like the Android's photos gallery...
The way I'm doing it now is using Gallery
:
private class PhotosGallery extends Gallery{
public PhotosGallery(Context context) {
super(context);
}
@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
return super.onFling(e1, e2, 0, 0);
}
}
But this way is not working very well: if you don't pass your finger all over the screen's width, it doesn't go to the next page (it kind of stops and comes back to the page you were before the interaction).
Any one knows another way?