layout_weight attribute in <include> tag
<p>I'm trying to reuse some layout components in android application using <code>&lt;include&gt;</code> tag. I've got different port and land layouts: </p>

<ol>
<li><p>Port:</p>

<pre><code>&lt;LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp"&gt;

    &lt;include layout="@layout/calc_equals_button" a:layout_weight="4"/&gt;
    &lt;include layout="@layout/calc_display"/&gt;

&lt;/LinearLayout&gt;
</code></pre></li>
<li><p>Land: </p>

<pre><code>&lt;LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp"&gt;

    &lt;include layout="@layout/calc_equals_button"/&gt;
    &lt;include layout="@layout/calc_display"/&gt;

&lt;/LinearLayout&gt;
</code></pre></li>
</ol>

<p>Main difference is <strong><code>a:layout_weight="4"</code></strong>, so i want my calc_equals_button component to be smaller in port orientation.</p>

<p>The thing is if i try to embed <code>calc_equals_button</code> component directly everything works OK, e.g.:</p>

<pre><code>&lt;LinearLayout a:layout_weight="1" a:layout_width="match_parent" a:layout_height="0dp"&gt;
        &lt;DirectionDragButton
                xmlns:a="http://schemas.android.com/apk/res/android"
                a:id="@+id/equalsButton"
                a:text="="
                a:layout_width="match_parent"
                a:layout_height="match_parent"
                a:layout_weight="4"
                style="@style/control_button_style"
                a:onClick="numericButtonClickHandler"/&gt;

        &lt;include layout="@layout/calc_display"/&gt;

    &lt;/LinearLayout&gt;
</code></pre>

<p>otherwise - NOT.</p>

<p>Here is sample of calc_equals_button.xml:</p>

<pre><code>&lt;DirectionDragButton
    xmlns:a="http://schemas.android.com/apk/res/android"
    a:id="@+id/equalsButton"
    a:text="="
    a:layout_width="match_parent"
    a:layout_height="match_parent"
    style="@style/control_button_style"
    a:onClick="numericButtonClickHandler"/&gt;
</code></pre>
