在搜索栏中定位搜索图标

时间:2014-08-07 04:54:56

标签: javascript titanium-mobile appcelerator-mobile

我最近搬到了TitaniumMobile,我需要赶上很多东西。现在,我想把“搜索图标”放在左侧,尽管没有聚焦。但与默认参数一样,它将如下所示。

var search = Titanium.UI.createSearchBar({
         showCancel:true,
         height:43,
         top:0
  });

enter image description here

然后,我不知道如何修补搜索栏并最终欺骗这样。

var search = Titanium.UI.createSearchBar({
     showCancel:true,
     height:43,
     top:0,
     hintText:"                                              "
});

enter image description here

但我不喜欢那种方式,还有其他方法吗?

0 个答案:

没有答案
相关问题