【发布时间】:2016-03-19 18:08:09
【问题描述】:
我正在钛 4.1.0 sdk 应用程序中创建一个搜索栏,我需要在搜索栏中隐藏蓝色底线并将键入字母的颜色设为蓝色。我正在使用下面的代码,但没有名为 color 的属性搜索栏,我怎么能隐藏底线?请指导我。
var search = Titanium.UI.createSearchBar({
height : 23,
backgroundColor:'transparent',
showCancel : true,
top : 0,
softKeyboardOnFocus : Titanium.UI.Android.SOFT_KEYBOARD_HIDE_ON_FOCUS
});
var tableview = Titanium.UI.createTableView({
backgroundColor : 'transparent',
height : 'auto',
contentHeight : 'auto',
left : 10,
right :10,
search : search
});
【问题讨论】: