Is there any way to use RadioButtons but have them look like ImageButtons?
I want the functionality of RadioButtons (i.e. when either button is clicked, the others get "unclicked") and the graphics of an ImageButton (a drawable on top and a background that alters in color when you click it). The currently selected RadioButton should stay the same color as when a Button is pressed (e.g. slightly darker for Holo Light theme).
I tried using a RadioGroup with this selector as button for each RadioButton:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/btn_default_pressed_holo_light" android:state_checked="true"</item>
<item android:drawable="@drawable/btn_default_normal_holo_light"></item>
</selector>
and my desired drawable as the drawable value. This kind of works but looks ugly. The drawable is left aligned in relation to the Background and the background doesn't look exactly like regular buttons even though I used the 9-patch found for buttons in Holo Light.
Example RadioButton:
<RadioButton
android:button="@drawable/ic_action_game"
android:background="@drawable/radio_background_selector"
android:id="@+id/game_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dip"/>