How to change the style of a checkbox from holo.light to holo.dark?

The title speaks for itself. Is it possible? If so, than how do I do it? I want to use the holo.dark color scheme only for a CheckBox. Thanks.

Answers


Add in your layout xml file style="@android:style/Widget.Holo.CompoundButton.CheckBox"


If you are using android-studio, select your checkbox, and in the properties, set 'buttonTint' property value to whatever color you want using the editor. Or , if you prefer the xml solution, use

android:buttonTint="@color/white"

This assumes of course that the color white is defined.


Need Your Help

Why am I getting std::bad_alloc when I have so much free memory available

c++ memory-management memory-leaks operating-system

One of my processes is restarting over and over apparently because of following messages in log file: