How to choose the right picture size
<p>Hy!</p>

<p>I have two pictures on the view and a button at the buttom.</p>

<p>But the Problem is that the last picture is drawn at the button and not under the first on. So the button at the buttom is unvisible.</p>

<p><img src="http://i.stack.imgur.com/XMzF7.png" alt="Screenshot"></p>

<p>XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_height="wrap_content" android:layout_width="fill_parent" android:orientation="vertical"&gt;
    &lt;TextView android:layout_height="wrap_content" android:id="@+id/mainscreen" android:layout_width="fill_parent" android:text="Selected Channel" android:gravity="center"&gt;&lt;/TextView&gt;
    &lt;ImageView android:id="@+id/ImageView01" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ImageView&gt;
    &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/mainscreen_state"&gt;&lt;/TextView&gt;
    &lt;ImageView android:layout_width="wrap_content" android:layout_centerHorizontal="true" android:layout_height="wrap_content" android:id="@+id/ImageAd" android:layout_gravity="center"&gt;&lt;/ImageView&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"&gt;


    &lt;Button android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:id="@+id/mainscreen_btchange" 
        android:text="Change State"&gt;&lt;/Button&gt;


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