Is there a way to modify/pass values to properties in the layout that you are including?
For example, if the layout that I am including has a background image, then how can I pass a different image for that background each time I include the layout? Can I do something of the sort : <include layout="@layout/blah" android:background="@drawable/bg1" /> <include layout="@layout/blah" android:background="@drawable/bg2" /> <include layout="@layout/blah" android:background="@drawable/bg3" /> If not then is there a better way to do it? Rohit On Dec 10 2008, 8:56 am, Romain Guy <romain...@google.com> wrote: > <includelayout="@layout/blah" /> > > :) > > > > On Wed, Dec 10, 2008 at 5:18 PM, Maxence Warzecha <war...@gmail.com> wrote: > > > Hi all, > > > I have a myform.xmllayoutwith a simple form. > > I have also a main.xmllayout. > > > I would like to know if we caninclude/insertexistinglayout > > (myform.xml) in anotherlayout(main.xml). > > I would like to do that in my main.xml directly without use java > > programmation but if it's not possible let me know anotherway to do. > > > Something like that : > > <Layout... parent="@layout/myform" ... /> > > > Thank you, > > Maxence > > -- > Romain Guywww.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---