I need to create a login form with \'username\' \'password\' fields and two buttons \'login\' and \'cancel\' in my android application.
I am using an alert dialog w
See this link text view android:password
This applies for EditText as well, as it is a known direct subclass of TextView.
EditText
TextView