【发布时间】:2016-03-21 16:27:31
【问题描述】:
我正在开发一款适用于 Android 和 IOS 的钛金属应用,并且需要一个搜索栏。在IOS中它工作正常。背景为白色,文本为黑色,但在 android 中,文本与背景颜色相同(白色),因此不会出现。
这是我的搜索栏:
var searchBar = Titanium.UI.createSearchBar({
barColor : '#FFFFFF',
backgroundColor : 'transparent',
borderRadius : 3,
borderColor : 'black',
height : 43,
focusable : true,
softKeyboardOnFocus : true,
width : 300,
top : deviceHeight * 0.12
})
如何更改文本颜色,使其在 android 和 IOS 中为黑色?
我没有使用合金文件夹
【问题讨论】:
标签: android ios iphone titanium titanium-mobile