Android : Typeface is changed when i apply password Type on EditText
Posted
by
wawanopoulos
on Stack Overflow
See other posts from Stack Overflow
or by wawanopoulos
Published on 2014-06-09T09:20:25Z
Indexed on
2014/06/09
9:24 UTC
Read the original article
Hit count: 268
android
|android-edittext
I use FloatLabel library (https://github.com/weddingparty/AndroidFloatLabel) to add a little animation when user begin to write something in an EditText Android.
My problem is that the typeface seems to be changed when i apply the password type to my EditText. I would like to keep the same typeface as normal. (see picture 1)
But when i add the following line to apply password type, the typeface of hint seems to be changed !
pass.getEditText().setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
© Stack Overflow or respective owner