4

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 ?

Anand
  • 5,323
  • 5
  • 44
  • 58
Yothesh
  • 143
  • 2
  • 10

1 Answers1

9

You can do it simply by setting the backgroundColor property of your textField. You can set it to either white or transparent

enter image description here

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.

Anand
  • 5,323
  • 5
  • 44
  • 58