title: android mirroring imageresource in src of imagebutton
body: <p>I set the ImageResource of an ImageButton programmatically, while itself is created in xml:</p>
  
  <pre><code>        &lt;ImageButton
              android:id="@+id/id_of_image_button"
              android:layout_width="88dp"
              android:layout_height="88dp"
              android:layout_below="@+id/id_of_other_image_button"
              android:layout_centerHorizontal="true"
              android:background="@drawable/background_of_image_button"
              android:contentDescription="@string/description_of_image_button"
              android:onClick="onButtonClick"
              android:scaleType="fitCenter" /&gt;
  </code></pre>
  
  <p>in java I set the src (depends on other code...)</p>
  
  <pre><code>    ImageButton ib = (ImageButton) findViewById(R.id.id_of_image_button);
      ib.setImageResource(R.drawable.src_of_image_button);
  </code></pre>
  
  <p>How can I mirror the ImageResource (src only, NOT the background)? Is there any solution (in Java/XML) which doesn't blow up the simple code? ;)</p>