Why does Android Activity move button after changing background?
<p>I have an Activity with the following image button:</p>

<pre><code>&lt;ImageButton android:id="@+id/nextPage"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"       
    android:contentDescription="@string/nextPageString"
    android:alignParentRight="True"
    android:alignParentBottom="True"
    android:onClick="NextPage" /&gt;
</code></pre>

<p>My Button appears in the bottom right corner of the screen as I would expect. </p>

<p>When I click the button I change the background with the following code:</p>

<pre><code>public void NextPage(View view){
    Resources res = this.getResources();
    Drawable d = res.getDrawable(R.drawable.nextBackgroundImage);
    view.setBackground(d);
}
</code></pre>

<p>After I click the button the first time it displays my new background exactly as I want, however, it moves the image button to the center of the screen.  Not sure why.  I would like it to stay in the bottom right corner.</p>
