Set inputType for an EditText?

Posted by user246114 on Stack Overflow See other posts from Stack Overflow or by user246114
Published on 2010-04-06T16:02:29Z Indexed on 2010/04/06 16:33 UTC
Read the original article Hit count: 308

Filed under:
|

Hi,

How do we set the input type for an EditText programatically? I'm trying:

mEdit.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);

it doesn't seem to have any effect.

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk