Saturday, July 31, 2010

Re: [android-developers] Re: How to populate a ViewStub using different ImageButtons?

That sounds great, but I just read that a ViewSwitcher only works with two child views and I have at least 4 :((

On Sat, Jul 31, 2010 at 8:20 PM, schwiz <schwiz@gmail.com> wrote:
viewswitcher is probably better for what you are wanting to do
http://developer.android.com/reference/android/widget/ViewSwitcher.html
you can even assign animations for the views as they come and go if
you want.

On Jul 30, 3:51 pm, Victoria Busse <victoriasarabu...@gmail.com>
wrote:
> Hi there,
>
> I am trying to populate a ViewStub with a new view depending on which
> ImageButton is clicked, but as I just discovered ViewStubs I am not exactly
> sure how this would work...
>
> e.g. can I provide the ViewStub with different inflatedIds and within the
> onClick event of a Button inflate the ViewStub by calling a specific
> inflatedId???
>
> If someone could give me hand, that would be really great.
>
> Thank you very much in advance :o)

--
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+unsubscribe@googlegroups.com
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment