title: How can I make make a border for a clicked imagebutton in Android?
body: <p>I am using Imagebuttons to show some icons in my android project.</p>
  
  <pre><code>&lt;ImageButton
      android:id="@+id/button_one"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:padding="20dp"
      android:contentDescription="@string/button_one"
      android:background="@android:color/transparent"
      android:src="@drawable/button_one" /&gt;
  </code></pre>
  
  <p>I would like, when the button is in pressed state, there to be a white border with rounded corners. What can I do to make this happen? Can this be done using just code or will I need an extra background image?</p>