I am using 7 radio buttons which correspond to days of the week. I am not putting them in a radio group because a user should be able to select multiple days/buttons. However, once the button is checked, it is permanently checked and I don't know why. First off, should I even be using radio buttons for this?
Here is my xml code:
<RadioButton
android:id="@+id/tuesday_radioButton"
android:button="@null"
android:layout_width="45dp"
android:layout_height="45dp"
android:text="T"
android:gravity="center"
style="@style/circleButton_style"
/>
Corresponding style code:
<style name="circleButton_style" parent="AppTheme">
<item name="android:background">@drawable/circle_stand_sel</item>
<item name="android:textColor">#FFFFFF</item>
<item name="android:minHeight">48dp</item>
<item name="android:paddingLeft">5dp</item>
<item name="android:paddingRight">5dp</item>
<item name="android:button">@null</item>
</style>
And my drawable:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/circle_pressed"
android:state_checked="true"/>
<item android:drawable="@drawable/circle"
android:state_checked="false"/>
<item android:drawable="@drawable/circle"/>
</selector>