这适用于文本字段:
<TextField id="txtNick" paddingLeft='15' top='10' maxLength='20' width = '300' />
但是,以下代码在文本区域中不起作用:
<TextArea id="txtAbout" maxLength='250' paddingRight='10' top='10' width = '300' borderStyle="Ti.UI.INPUT_BORDERSTYLE_ROUNDED"/>
知道如何实现填充吗?干杯
答案 0 :(得分:1)
你不能使用单个TextArea。但你可以:
<View height="Ti.UI.SIZE">
<TextArea left="10 right="10" />
</View>