Android : Typeface is changed when i apply password Type on EditText

前端 未结 6 1071
借酒劲吻你
借酒劲吻你 2021-02-01 12:53

I use FloatLabel library (https://github.com/weddingparty/AndroidFloatLabel) to add a little animation when user begin to write something in an EditText Android

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 13:29

    For some reason I didn't have to set the transformation method so this may be a better solution. In MyActivity:

      EditText editText_password = findViewById(R.id.edittext);
        editText_password.setTransformationMethod(new PasswordTransformationMethod());
    

提交回复
热议问题