summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Scott Main <smain@google.com> 2012-12-13 11:36:23 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2012-12-13 11:36:23 -0800
commitc49ffcdee87d185c6857bdad94f7cf53f04f6a65 (patch)
tree73e3d9030c2ea306b5e8b27d118ca8dcffcbd919
parent73f24ae1d9992cf70cb05bc319d12478b2c49566 (diff)
parentf83ab33c57f22f040fdb6ae546a3aae39a1b2b4c (diff)
am f83ab33c: am 095d6947: docs: explain that layout height/width must be used to override include layouts
* commit 'f83ab33c57f22f040fdb6ae546a3aae39a1b2b4c': docs: explain that layout height/width must be used to override include layouts
-rw-r--r--docs/html/training/improving-layouts/reusing-layouts.jd4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/html/training/improving-layouts/reusing-layouts.jd b/docs/html/training/improving-layouts/reusing-layouts.jd
index fdd3333e889f..87431d3a59c3 100644
--- a/docs/html/training/improving-layouts/reusing-layouts.jd
+++ b/docs/html/training/improving-layouts/reusing-layouts.jd
@@ -109,6 +109,10 @@ example:</p>
layout=”@layout/title”/>
</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>