Good day to all!
There was a question: it is necessary to implement the element repeating element PageControl , which is part of iOS applications on Android! As long as it does not reach me. Of course, you can use handles to register radio slide_in and scrolling gestures and insert animations like slide_in and slide_out . But maybe there is still a simpler way out of this situation? Below is a picture of how it should look!

alt text

    2 answers 2

    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!

    • Thanks for the detailed answer! I will try. But to be honest, I separately nuggulil this information.) - vanyamelikov
    • Well, now everything is in a bunch. Hope this helps you - BlackWidow

    ViewPagerIndicator