Make a hint with dots for password EditText? [Android]

android, android-edittext

Solution

I'm guessing what you mean is you want the password typed to appear as dots. You can use the password attribute for the EditText in your xml :

<EditText
    android:id="@+id/account_password"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:password="true"/>

If you really want the hint (what appears to the users before they type in the EditText) as dots, you can use this attribute :

android:hint="........"

Problem

I want to make a hint for password EditText. How to put dots as hint with the same style as transformed characters in password EditText?

Original source