The Theme.Holo.Light setting changes everything except the checkboxes in the list

<style name="CustomTheme" parent="@android:style/Theme.Holo.Light"> 

I made my own topic and added a link to it in my manifest. Everything looks perfect (buttons, text fields, etc.), with the exception of the checkboxes in my user list.

  android:checkMark="?android:attr/listChoiceIndicatorMultiple" 

The checkbox on my list is the default checkbox from Theme.Holo, and I cannot understand why.

Thanks for any help!

+4
source share
2 answers

I have the same problem. I have no idea why he does not select the correct checkbox - you can barely see it on a light background. At the moment, I copied the corresponding control images of the bare backlight from the android drop-down folders and into my project. Then I created my own, which referenced these images. Then I set the android: button attribute to my new xml selector. My xml selector looks like this:

 <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_checked="true" android:state_focused="true" android:drawable="@drawable/btn_check_on_focused_holo_light" /> <item android:state_checked="false" android:state_focused="true" android:drawable="@drawable/btn_check_off_focused_holo_light" /> <item android:state_checked="false" android:drawable="@drawable/btn_check_off_holo_light" /> <item android:state_checked="true" android:drawable="@drawable/btn_check_on_holo_light" /> </selector> 

Make sure that you copy all density images (xhdpi, hdpi, etc.) to your project.

+8
source

The same thing happened to me, but with radio buttons, as henry000 wrote.

I downloaded the original backlit voice hologram images and XML layouts from http://android-holo-colors.com/

+1
source

All Articles