Android: Button not showing after dynamic view
<p>I'm trying to dynamically put a bitmap in between a Textview and a Button:</p>

<pre><code>&lt;TextView android:text="TextView" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
&lt;LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:orientation="vertical"&gt;
&lt;/LinearLayout&gt;
&lt;LinearLayout android:layout_width="fill_parent" android:id="@+id/linearLayout2" android:layout_height="fill_parent" android:orientation="vertical"&gt;
    &lt;Button android:layout_width="fill_parent" android:layout_gravity="fill_vertical" android:text="Button" android:layout_height="fill_parent" android:id="@+id/button1"&gt;    &lt;/Button&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>In my Main Activity I create my custom view and add it to the LinearLayout1</p>

<pre><code>mView = new myView(this);
LinearLayout ll = (LinearLayout)findViewById(R.id.linearLayout1);
ll.addView(rView);
</code></pre>

<p>My problem is, that myView consumes all available space below of it.</p>

<p>What am I missing?</p>

<p>Thnx in advance.</p>
