I don't really understand what you mean, if I wanted to be able to switch the view each time a button is pressed and I got at least 4 buttons which all should call a new view, then as far as I understood it I can't use a ViewSwitcher or can I?
On Mon, Aug 2, 2010 at 9:49 AM, schwiz <[email protected]> wrote: > You can get a handle on the views inside the switcher and change them > as needed, it just only holds memory for 2 at a time. > > On Jul 31, 2:50 pm, Victoria Busse <[email protected]> > wrote: > > 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 <[email protected]> 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 <[email protected]> > > > 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 > [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<android-developers%[email protected]><android-developers%2Bunsubs > [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]<android-developers%[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

