Android 设置Theme.Holo.Light会更改列表中除复选框之外的所有内容

Android 设置Theme.Holo.Light会更改列表中除复选框之外的所有内容,android,android-theme,Android,Android Theme,我的listitem中的复选框是Theme.Holo的默认复选框,我不知道为什么 谢谢你的帮助 我也有同样的问题。我不知道为什么它没有选择正确的复选框-你几乎看不到它的灯光背景。现在,我将相应的holo light复选框图像从android drawable文件夹复制到我的项目中。然后,我创建了我自己的引用这些图像。然后,我将android:button属性设置为新的选择器xml。我的选择器xml如下所示: android:checkMark="?android:attr/listCho

我的listitem中的复选框是Theme.Holo的默认复选框,我不知道为什么


谢谢你的帮助

我也有同样的问题。我不知道为什么它没有选择正确的复选框-你几乎看不到它的灯光背景。现在,我将相应的holo light复选框图像从android drawable文件夹复制到我的项目中。然后,我创建了我自己的引用这些图像。然后,我将android:button属性设置为新的选择器xml。我的选择器xml如下所示:

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


请确保将所有不同密度的图像(xhdpi、hdpi等)复制到您的项目中。

正如henry000所写,同样的事情也发生在我身上,但有单选按钮

我从网站下载了最初的全息灯主题单选按钮图像和XML布局

这个解决方案对我很有帮助!出于某种原因,我不知道为什么,我的单选按钮没有默认的全息灯外观。我复制了单选按钮的drawables,而不是复选框。如果您没有所需的资源,请从
    android:checkMark="?android:attr/listChoiceIndicatorMultiple"
<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>