Loading docs/html/guide/topics/resources/layout-resource.jd +4 −5 Original line number Original line Diff line number Diff line Loading @@ -161,11 +161,10 @@ included layout. Only effective if <code>android:layout_height</code> is also de supported by the root element in the included layout and they will override those defined in the supported by the root element in the included layout and they will override those defined in the root element.</p> root element.</p> <p class="caution"><strong>Caution:</strong> If you want to override the layout dimensions, <p class="caution"><strong>Caution:</strong> If you want to override layout attributes using you must override both <code>android:layout_height</code> and the <code><include></code> tag, you must override both <code>android:layout_width</code>—you cannot override only the height or only the width. <code>android:layout_height</code> and <code>android:layout_width</code> in order for If you override only one, it will not take effect. (Other layout properties, such as weight, other layout attributes to take effect.</p> are still inherited from the source layout.)</p> <p>Another way to include a layout is to use {@link android.view.ViewStub}. It is a lightweight <p>Another way to include a layout is to use {@link android.view.ViewStub}. It is a lightweight View that consumes no layout space until you explicitly inflate it, at which point, it includes a View that consumes no layout space until you explicitly inflate it, at which point, it includes a Loading Loading
docs/html/guide/topics/resources/layout-resource.jd +4 −5 Original line number Original line Diff line number Diff line Loading @@ -161,11 +161,10 @@ included layout. Only effective if <code>android:layout_height</code> is also de supported by the root element in the included layout and they will override those defined in the supported by the root element in the included layout and they will override those defined in the root element.</p> root element.</p> <p class="caution"><strong>Caution:</strong> If you want to override the layout dimensions, <p class="caution"><strong>Caution:</strong> If you want to override layout attributes using you must override both <code>android:layout_height</code> and the <code><include></code> tag, you must override both <code>android:layout_width</code>—you cannot override only the height or only the width. <code>android:layout_height</code> and <code>android:layout_width</code> in order for If you override only one, it will not take effect. (Other layout properties, such as weight, other layout attributes to take effect.</p> are still inherited from the source layout.)</p> <p>Another way to include a layout is to use {@link android.view.ViewStub}. It is a lightweight <p>Another way to include a layout is to use {@link android.view.ViewStub}. It is a lightweight View that consumes no layout space until you explicitly inflate it, at which point, it includes a View that consumes no layout space until you explicitly inflate it, at which point, it includes a Loading