I want to replace dots in EditText (android:inputType="textPassword"
) with custom xml or image. I can replace dots with any other symbol using PasswordTransformationMethod
method, but this is not what is required in this case.
So, is it possible?
Thanks.
There is Span API for Edit text. You could use TextWatcher in connection with ImageSpan. Also Don't forget about copy/paste functionalty in secure reson. So solution is listening text input, and wrap it with ImageSpans. when you want to get password you will be able simple use EditText.getText.toString();
Please look at this http://developer.android.com/reference/android/text/method/PasswordTransformationMethod.html
Try this,
}; text.setTransformationMethod(new MyPasswordTransformationMethod());