Reputation: 1945
I need to customize a radio button but I'm having terrible difficulties.I need to do it in a way without creating new images (if possible).
I was looking at defining shapes instead of png but I can't get it to work. Can someone show me how to create and apply shapes and styles?
Here is how I need them to look like:
I dont think it should be very difficult but I couldn't find a tutorial explaining how shapes work.
Upvotes: 1
Views: 6029
Reputation: 6992
RadioButton can be customized by customizing application themes or radio button material theme as shown below to change colors of radio button. For other customizations see http://www.zoftino.com/android-ui-control-radiobutton
<style name="MyRaidoButtonTwo" parent="Widget.AppCompat.CompoundButton.RadioButton">
<item name="android:colorControlNormal">#64dd17</item>
<item name="android:colorControlActivated">#460745</item>
<item name="android:colorControlHighlight">#c51162</item>
<item name="android:textColorPrimaryDisableOnly">#00838f</item>
<item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
</style>
Upvotes: 1
Reputation: 24853
Use this link select radio style...!
http://android-holo-colors.com/
Save all drawable files,images,style and theme in your project..
Upvotes: 2