Generally when a view like CheckBox, Switch, Seekbar(ecc…) is created and showed in lightning launcher context it…
Generally when a view like CheckBox, Switch, Seekbar(ecc…) is created and showed in lightning launcher context it takes a default color: the orange.
There is a way to change that default color through scripts?
]]>
< ![CDATA[
Pierre Hébert?
]]>
< ![CDATA[
I tried to, and searched, but according to the internet the color is an ‘internal’ immutable value of the theme, so the only way will be to specify a custom theme but that doesn’t seem to work reliably (you can’t, or it is very hard to create dynamically new ones, and you can’t apply it to other activities other than the desktop or app drawer…unless I’m wrong)
]]>
< ![CDATA[
Indeed Android views are configured using the current context theme.
Instead of changing the theme you can try to create view using a ContextThemeWrapper, but you can only use Android defined themes. Look for themes in android.R.style.Theme_*
I never tried that though.
Ref:
http://developer.android.com/reference/android/view/ContextThemeWrapper.html#ContextThemeWrapper(android.content.Context, int)
http://developer.android.com/reference/android/R.style.html
]]>