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

查看:29
本文介绍了更改钛 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>

将此代码放在/platform/android/res/values/custom_theme.xml

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

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

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