Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ViewFlipper back to first view

My viewFlipper contains 15 LinearLayout. After it reaches, I have a button "Back to menu".

I've used

showNext()

all the way to the 15th LinearLayout. And now I want it to go back to 1st LinearLayout. Anyone have any idea? How to bring it back to 1st Linearlayout?

Thanks.

like image 404
Muazam Avatar asked Mar 05 '11 20:03

Muazam


1 Answers

Call showNext(). Or, call setDisplayedChild(0).

like image 185
CommonsWare Avatar answered Nov 03 '22 06:11

CommonsWare