I am trying to round corners on an android ImageButton, the code looks like this;
You could use a selector made of shape drawables as background, for example :
rounded_bg.xml (to be created in res/drawable-nodpi folder)
Create another one, changing the color referenced in solid android:color="#ffffff" , for example to solid android:color="#ff0000" and name that file rounded_bg_selected.xml
Create the selector (also in res/drawable-nodpi), name it selectable_button_bg.xml:
Then reference it in your layout :