I have a several buttons in the first layout in the viewflipper, and I would like to know how I can swipe over the buttons and switch to the second layout that is also in the viewflipper.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To swipe between layouts in a ViewFlipper use the following methods
showPrevious()
showNext()
or
startFlipping()
the first two methods are derived from the parent class ViewAnimator
For an example please refer to the following link:
http://dj-android.blogspot.in/2012/03/view-flipper-example-android.html
Of course in your case, you should trigger the showPrevious/showNext/startFlipping in the onClick method for your button