Holo Colors on Pre Holo devices?

I am using the Keyboardsurfer Crouton class for Android. It uses a Holo color image as the background color (android.R.color.holo_red_light).

Now these colors are displayed only on Holo Themed Devices. On older, it appears as gray.

Now I want to know if there is a way to get these colors for older devices to use them?

+1
source share
2 answers

Copy color values ​​from <android-sdk-path>/platforms/android-16/data/res/values/colors.xmlto your own colors.xmlfile <project-dir>/res/values/colors.xml.

Now use the values ​​as the background color (R.color.holo_red_light).

<android-sdk-path> is the android-sdk direcotry path.

+2
source

: http://developer.android.com/design/style/color.html ( ). colors.xml . Crouton, (R.color.xxx).

+2

All Articles