title: Rounded corners android image buttons
body: <p>I am trying to round corners on an android ImageButton, the code looks like this;</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;RelativeLayout 
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
          &lt;ImageButton
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/imageButton"
              android:layout_marginTop="57dp"
              android:src="@drawable/friends"
              android:padding="1dp"
              android:layout_alignParentTop="true"
              android:layout_toLeftOf="@+id/imageButton2"
              android:layout_marginRight="62dp" /&gt;
  
      &lt;/RelativeLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Basically our output is an ImageButton but it has squared corners, we are trying to round off the corners.</p>
  
  <p>Thanks</p>