I need to remove the border for my text field.
Default border style for Titanium Text field is Titanium.UI.INPUT_BORDERSTYLE_NONE
. But It is default only to iPhone.
I have also turned the borderColor = 'white'
,which was my backgroundColor. But doesn't work.
Any solutions ?
You can do it simply by setting the backgroundColor
property of your textField. You can set it to either white
or transparent
Here is an example
var txtSome = Ti.UI.createTextField({
hintText : 'My hint text',
width : '75%',
top : '5%',
backgroundColor : 'transparent'//or backgroundColor : 'white'
});
I know it's too late. But will help some one else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With