在pre全息设备全息颜色? [英] Holo Colors on pre Holo Devices?

查看:115
本文介绍了在pre全息设备全息颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的为Android Keyboardsurfer的Crouton类。它采用了全息颜色作为背景色(android.R.color.holo_red_light)。

I am using Keyboardsurfer's Crouton class for Android. It uses the Holo Colors as Background Color (android.R.color.holo_red_light).

现在这些颜色只能得到所示的Holo主题设备。在旧的它显示为灰色。

Now those colors only get shown on Holo Themed Devices. On the older ones it's shown as grey.

我现在想知道是否有获得这些颜色的旧设备也使用它们的方法吗?

I now want to know if there is any way of getting those colors to the old devices too to use them?

推荐答案

颜色值从&LT复印件; Android的SDK路径> /平台/ Android的16 /数据/ RES /价值/颜色的.xml 来自己的 colors.xml 文件 - <项目目录> /res/values​​/colors.xml

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.

现在使用的值作为背景颜色(R.color.holo_red_light)

Now use the values as Background color (R.color.holo_red_light).

&LT; Android的SDK路径方式&gt; 是Android的SDK direcotry路径

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

这篇关于在pre全息设备全息颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆