You would have to do this from code. Such a feature is planned but at
the moment you can only "override" the layout attributes and the id
attribute.

On Wed, Jan 7, 2009 at 3:06 PM, Rohit <[email protected]> wrote:
>
> 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 <[email protected]> wrote:
>> <includelayout="@layout/blah" />
>>
>> :)
>>
>>
>>
>> On Wed, Dec 10, 2008 at 5:18 PM, Maxence Warzecha <[email protected]> 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
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to