Deprecated: Display characters as password dots in TextView/EditText

Deprecated: How to Display characters as password dots in TextView/EditText

Deprecated in API Level 3, added in API Level 1
Use inputType = "textPassword" instead.

Characters of the field are displayed as password dots instead of themselves.

1. Create an Android project, if you don't already have one.

2. Add an EditText in the main.xml file.

3. In the main.xml file, add the code below.

<EditText
        ...
android:password = "true"
/>

4. Compile and run!
http://developer.android.com/reference/android/widget/TextView.html#attr_android:password
http://developer.android.com/reference/android/R.attr.html#password