Friday, July 30, 2010

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

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

No comments:

Post a Comment