适用于Android的Titanium文本字段边框样式为none

Yot*_*esh 4 appcelerator-mobile titanium-mobile

我需要删除文本字段的边框.Titanium Text字段的默认边框样式为Titanium.UI.INPUT_BORDERSTYLE_NONE.但它仅默认为iPhone.我也转过了borderColor = 'white',这是我的backgroundColor.但是不起作用.有解决方案吗

Ana*_*and 8

您只需设置backgroundColortextField 的属性即可.您可以将其设置为whitetransparent

在此输入图像描述

这是一个例子

var txtSome = Ti.UI.createTextField({
   hintText : 'My hint text',
   width     : '75%',
   top   : '5%',
   backgroundColor : 'transparent'//or backgroundColor : 'white'
});
Run Code Online (Sandbox Code Playgroud)

我知道为时已晚.但是会帮助其他人.