> From what I've read and tried, it seems that the layout properties on
> the <merge> container does NOT transfer to the new element after
> inflating the subtree, and I must define them in code. Is this
> accurate?

<merge /> only means "ignore me," any attribute you put on it will be
forgotten by the layout inflater. You could however inflate your
custom layout from XML to set its attributes.

<merge /> was mostly meant to be used with ViewStub btw. Also, there
is an <include /> tag that lets you override a few attributes (all the
android:layout_ attributes and the android:id attribute.)

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