docs: explain that layout height/width must be used to override include layouts

Change-Id: I7ee63f2f05b2e9a8cd424dfb2e7c9bead9d5efc6
This commit is contained in:
Scott Main
2012-12-13 10:59:58 -08:00
parent 9d7578c73a
commit 095d69474b

View File

@@ -109,6 +109,10 @@ example:</p>
layout=”@layout/title”/> layout=”@layout/title”/>
</pre> </pre>
<p>However, if you want to override layout attributes using
the <code>&lt;include&gt;</code> tag, you must override both
<code>android:layout_height</code> and <code>android:layout_width</code> in order for
other layout attributes to take effect.</p>
<h2 id="Merge">Use the &lt;merge&gt; Tag</h2> <h2 id="Merge">Use the &lt;merge&gt; Tag</h2>