[android-developers] Re: ViewFlipper - showView(2) functionality rather than just showNext()

2009-05-09 Thread mscwd01

Thanks Mark, I posted to soon and found the answer it seems straight
after posting the question! Oh well it may help some folks out ;)

On May 9, 11:45 am, Mark Murphy  wrote:
> mscwd01 wrote:
> > Hey,
>
> > Quick question, is there a straightforward way to flip to a desired
> > view in a list of view, rather than just flipping to the next or
> > previous view?
>
> > I would like to specifically detail which view to flip to. I.e. If you
> > are on view 2 I would like to be able to flip to view 4, without
> > calling showNext() twice.
>
> Try setDisplayedChild() (defined on ViewAnimator, the superclass of
> ViewFlipper).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Need Android talent? Ask on HADO!http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ViewFlipper - showView(2) functionality rather than just showNext()

2009-05-09 Thread Mark Murphy

mscwd01 wrote:
> Hey,
> 
> Quick question, is there a straightforward way to flip to a desired
> view in a list of view, rather than just flipping to the next or
> previous view?
> 
> I would like to specifically detail which view to flip to. I.e. If you
> are on view 2 I would like to be able to flip to view 4, without
> calling showNext() twice.

Try setDisplayedChild() (defined on ViewAnimator, the superclass of
ViewFlipper).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ViewFlipper - showView(2) functionality rather than just showNext()

2009-05-09 Thread mscwd01

Hmm, I just found the setDisplayedChild(int whichChild) of the
ViewAnimator class. I haven't got the SDK on this pc to test if it
works, can someone confirm?

Thanks

On May 9, 11:43 am, mscwd01  wrote:
> Hey,
>
> Quick question, is there a straightforward way to flip to a desired
> view in a list of view, rather than just flipping to the next or
> previous view?
>
> I would like to specifically detail which view to flip to. I.e. If you
> are on view 2 I would like to be able to flip to view 4, without
> calling showNext() twice.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---