How to resize Image to specific size in android layout?
<p>I am trying to create a image button  and I want to give the specific width and height to it, but my image size 512 x 512 and when activity starts layout is distorted because of the image.</p>

<p>Is there anyway I can resize it to some specific size?                       </p>

<pre><code>                   &lt;Button
        android:id="@+id/prev"
        android:text=""
        android:gravity="center"
        android:width="20dp"
        android:height="20dp"
        android:background="@drawable/go_prev"
            /&gt;  
</code></pre>
