I need a custom radio button to integrate into applications. The button is rectangular and will allow the user to specify the label of the button which will either be text or an image. An image or text will never be used simultaneously. Whichever label type is used, should be centered within the button. The button should be resizable using standard android layout properties. All code should be written in java/xml. It does not need to be compiled into any library. The code will just be copied and pasted from an example application that you provide.
The user of the control should also be able to specify
the background color when selected
the background color when unselected
the selected image
the unselected image
the font color when selected
the font color when unselected
the font size
the font
Please view the attachments for and example of what it should look like in both selected and unselected states