문제

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.

도움이 되었습니까?

해결책

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'
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top