tags:

views:

142

answers:

1

Hi,

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

Thanks, Farha

A: 

Step #1: Create a graphic with a dot

Step #2: Put copies of that graphic in the Views of your ViewFlipper via ImageView widgets, for however many dots you want

Step #3: Add an OnClickListener to each ImageView widget

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

CommonsWare