I have a custom radio button in android. Its works fine. My problem is that When I make those button disable it will not grayed out. How can I do so? Here is my sample code for custom radio button.
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/radio_select" />
<item android:state_checked="false" android:drawable="@drawable/radio_holo" />
</selector>
Here is code which I use in my layout
<RadioButton
android:id="@+id/radioButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/custom_radio_button"
android:onClick="OnClick"
android:text="button 1"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/black" />
One more thing that I required text appearance small and normal text color black.