i want to set my textview's
inputtype
to 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.
Looking in the original documentation. You need two values since it manage bit definitions:
http://developer.android.com/intl/es/reference/android/text/InputType.html
textview1.setInputType(InputType.TYPE_CLASS_TEXT | InputType. TYPE_TEXT_VARIATION_PASSWORD);