2012-08-31 35 views
4

我需要刪除我的文本字段的邊框。 鈦文本字段的默認邊框樣式爲Titanium.UI.INPUT_BORDERSTYLE_NONE。但它僅默認爲iPhone。 我也翻了borderColor = 'white',這是我的backgroundColor。但不起作用。 任何解決方案?鈦文本字段邊框樣式爲Android的無

回答

8

只需設置textField的backgroundColor屬性即可。你可以將它設置爲whitetransparent

enter image description here

下面是一個例子

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

我知道這是爲時已晚。但會幫助別人。