To accomplish the task you specified, you can use ActionBar.Tab, for example, look at the Android device itself with several desktops and you will clearly see how this mechanism is implemented in Android .
Tab documentation
Comparison of IOS and Android elements
- In fact, you can stylize almost any element of
Android under IOS and Tab no exception
More from here How to create an Page Control in android
You can do something like this.
int currentScreen = 1; final GestureDetector gestureDetector = new GestureDetector( new MyGestureDetector()); findViewById(R.id.homescreen).setOnTouchListener( new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (gestureDetector.onTouchEvent(event)) { return true; } else if (event.getAction() == MotionEvent.ACTION_UP || event.getAction() == MotionEvent.ACTION_CANCEL) { ...detect scroll and change var...
Read here: Android - HorizontalScrollView within ScrollView Touch Handling
And here: Android horizontal scollview behave like iPhone (paging)
addition There is an official paging from android
Well, the comparison of libraries
There are still realviewswitcher
There are still horizontal pager
Good luck!