钛Appcelerator的改变Android的选择器的字体颜色 [英] changing Android picker font color on titanium appcelerator

查看:171
本文介绍了钛Appcelerator的改变Android的选择器的字体颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是用我的类型时间选择器的应用程序选择器。机械手工作正常,在iOS设备上,但是当我去Android应用程序,它的出现,但字体颜色为白色,而无法看到的数字。结果
我不想背景更改为较深的颜色,因为它不符合程序的其他部分并不会被匹配的iOS应用。我不知道是否有一种方法来改变只是字体为黑色或灰色。
我已经尝试了一些张贴的解决方案,并改变主题,但它并没有为我工作了。

I am using a picker on my application of type time picker. The picker works fine on iOS devices, however when I go to the android application, it appears, but the font color is white, and cant see the numbers.
I do not want to change the background to a darker color because it doesnt match the rest of the application and wont be matching the ios app. I was wondering if there is a way to change just the font to black or gray color. I have already tried some of the solutions posted, and changing the themes, but it has not worked out for me.

推荐答案

您需要创建的自定义主题

<resources>
    <style name="Theme.NoActionBar" parent="@style/Theme.AppCompat.Light"> </style>
</resources>

将这个code在/platform/android/res/values​​/custom_theme.xml

Put this code in /platform/android/res/values/custom_theme.xml

这篇关于钛Appcelerator的改变Android的选择器的字体颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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