Code example for PasswordTransformationMethod

0
 
    // 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); 
 
  } 
}