I. Declare custom style in your styles.xml file. <style name = "MyRadioButton" parent = "Theme.AppCompat.Light" > <item name = "colorControlNormal" > @color/indigo </item> <item name = "colorControlActivated" > @color/pink </item> </style> II. Apply this style to your RadioButton via android:theme attribute. <RadioButton android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:checked = "true" android:text = "Radio Button" android:theme = "@style/MyRadioButton" />
Comments
Post a Comment