Sweet im going to mess with setDisplayChild and see what comes of it Thank you for your advice!
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brad Gies Sent: Thursday, September 02, 2010 10:02 PM To: [email protected] Subject: Re: [android-developers] ViewFlipper Help Please You could use flipper.setDisplayedChild(1); But, if you want the animation then what you are doing is probably correct, but you probably need to slow it down :)> Sincerely, Brad Gies ----------------------------------------------------------------------- Bistro Bot - Bistro Blurb http://bgies.com http://bistroblurb.com http://ihottonight.com http://forcethetruth.com ----------------------------------------------------------------------- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 02/09/2010 5:39 PM, Tommy wrote: > Hi everyone, > > I am currently using a ViewFlipper to move through some views. It > works fine when I want to move sequentially through IE 1,2,3,4 or > 4,3,2,1 My question is if I want to go from say 1 to 4 when a button > is clicked how should I do this? Currently I use the following bit of > code but im not sure this is the correct way to go about it. > > int x = 0; > do{ > flipper.setInAnimation(inFromRightAnimation()); > flipper.setOutAnimation(outToLeftAnimation()); > flipper.showNext(); > x = x +1; > }while(x<= 5); > } > > Thanks for your time and help, > > Tommy > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

