For setting the input type for an EditText programmatically, you have to specify that input class type is text.
editPass.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
More Related Contents:
- I cannot change the inputType, hint anything for my EditText
- EditText, inputType values (XML)
- Last character taken twice by textwatcher
- How to stop EditText from gaining focus at Activity startup in Android
- Focusable EditText inside ListView
- How to show soft-keyboard when edittext is focused
- Put constant text inside EditText which should be non-editable – Android
- Outlined Edit Text from Material Design
- How do I handle ImeOptions’ done button click?
- EditText loses content on scroll in ListView
- android EditText – finished typing event
- In Android EditText, how to force writing uppercase?
- Android intercept paste\copy\cut on editText
- How to restrict the EditText to accept only alphanumeric characters
- Disable EditText blinking cursor
- Drawing multiple lines in edittext e.g. notepad
- How to change style of a default EditText
- Disable soft-keyboard from EditText but still allow copy/paste?
- EditText loses content on scroll in ListView?
- Scrolling EditText inside ScrollView
- Implementing a rich text editor in Android?
- Allow multi-line in EditText view in Android?
- EditText Settext not working with Fragment
- How to disable “Next” button on a EditText software keyboard (replace with “Done” button)
- Change background of EditText’s error message
- How to exclude special characters from android keypad for EditText
- How to change color of EditText handles?
- Android EditText on longPress: ArrayIndexOutOfBoundsException: length=15; index=491
- Android, how do I stop a pointer appearing below an EditText
- EditText request focus