/**
* Creates a new PasswordTextBox component.
*
* @param container container, component will be placed in
*/
public PasswordTextBox(ComponentContainer container) {
super(container, new EditText(container.$context()));
// Disable auto-suggestion.
view.setRawInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
// make the box single line
view.setSingleLine(true);
// Add a transformation method to hide password text. This must
// be done after the SingleLine command
view.setTransformationMethod(new PasswordTransformationMethod());
// make sure the done action is Done and not Next. See comment in Textbox.java
view.setImeOptions(EditorInfo.IME_ACTION_DONE);
}
PasswordTextBox.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:appinventor-extensions
作者:
评论列表
文章目录