我遇到文本字段的问题是密码。我设置了文本字段属性密码hint:true
。当文本字段失去模糊(离开文本字段)到另一个字段时。当我需要更改密码文本字段之前的值我失败了。请你帮帮我。
这是我的代码:
我的.js文件
var passwordTextField = Ti.UI.createTextField({
hintText : 'Password',
hintTextColor : '#959697',
width : '80%',
left : '5%',
height : 40,
top:'10%',
passwordMask : true,
tintColor :'black',
color : 'green',
returnKeyType : Ti.UI.RETURNKEY_DONE,
autocapitalization :Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
});
$.index.add(passwordTextField);
$.index.open();
我的.xml文件:
<Alloy>
<Window class="container" backgroundColor="black">
</Window>
</Alloy>