Question

I'm new to Titanium Studio. I would like to create a Textfield without border for Android. I saw there is a method for Ios, but didn't find any for android. Can any one please suggest me how can I create a textfield with no border for android. Thanks in advance.

Was it helpful?

Solution

It appears the current trick is to apply a transparent image on the Android platform. This also appears to work on IOs as well, though I imagine the the preferred option for IOS is to set borderStyle: Ti.UI.INPUT_BORDERSYLE_NONE

var myText = Ti.UI.createTextField({
  backgroundImage: 'images/transparent.jpeg'
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top