Changing imageview is drawing ontop on old image
<p>I have a default image set as a src for an ImageView. Then i want to change this image. I do this:</p>

<pre><code>ImageView imageView;
imageView = (ImageView)findViewById(R.id.imageView);
imageView.setImageResource(R.drawable.dude);
</code></pre>

<p>The result is that it only puts itself ontop of the old one, why could that be?</p>

<p>EDIT: added the xml-file:</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_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" &gt;

&lt;ImageButton
    android:id="@+id/imageView"
    android:layout_width="241dp"
    android:layout_height="214dp"
    android:layout_gravity="center_horizontal"
    android:background="@drawable/car"
    android:src="@drawable/car" /&gt;

&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" &gt;

    &lt;Button
        android:id="@+id/button0"
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:onClick="clickclick"
        android:textSize="30sp" /&gt;

    &lt;Button
        android:id="@+id/button1"
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:onClick="clickclick"
        android:textSize="30sp" /&gt;

    &lt;Button
        android:id="@+id/button2"
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:onClick="clickclick"
        android:textSize="30sp" /&gt;

    &lt;Button
        android:id="@+id/button3"
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:onClick="clickclick"
        android:textSize="30sp" /&gt;

    &lt;Button
        android:id="@+id/button4"
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:textSize="30sp" /&gt;
&lt;/LinearLayout&gt;

&lt;TextView
    android:id="@+id/textViewGame"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/instructionsGame"
    android:textAppearance="?android:attr/textAppearanceMedium" /&gt;


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