Switching Views in a ViewFlipper

Is there a way to switch views in the ViewFlipper, like on the main screen, where we have small dots at the bottom of the screen and when we click on them we can switch the views.

Thank you Fara

+4
source share
2 answers

Step # 1: Create Graphics with a Point

Step # 2: Place copies of this image in the views of your ViewFlipper through ImageView widgets, for any number of points you want

Step # 3: add OnClickListener to each ImageView widget

Step # 4: In onClick() move the ViewFlipper as desired

+4
source

In fact, these days there is a better thing =) flowview from Patrik Γ…kerfeldt. See here:

https://github.com/pakerfeldt/android-viewflow

+1
source

Source: https://habr.com/ru/post/1303526/


All Articles