Search code examples
androidtextviewandroid-inputtype

How can i set text type of my textview asterisk or bullet programatically in android?


i want to set my textview's inputtypeto be asterisk or in bullet shape. i can set this property using XML file(layout). but when i want to set this programatically it does not work. I use textview1.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD); but it show the string that i passed to it. Thanks.


Solution

  • Looking in the original documentation. You need two values since it manage bit definitions: