Holo Colors On Pre Holo Devices?
I am using Keyboardsurfer's Crouton class for Android. It uses the Holo Colors as Background Color (android.R.color.holo_red_light). Now those colors only get shown on Holo Themed
Solution 1:
Copy the Color values from <android-sdk-path>/platforms/android-16/data/res/values/colors.xml
to your own colors.xml
file - <project-dir>/res/values/colors.xml
.
Now use the values as Background color (R.color.holo_red_light)
.
<android-sdk-path>
is you android-sdk direcotry path.
Solution 2:
You can find the colors here: http://developer.android.com/design/style/color.html (mouseover to see the hex code). Save the colors you need in your colors.xml file at values. Than you can define your own Crouton styles using the color id's of the colors you saved (R.color.xxx).
Post a Comment for "Holo Colors On Pre Holo Devices?"