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

前端 未结 6 1130
借酒劲吻你
借酒劲吻你 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:27

    Set the inputType as "text" in the xml,

    
    

    Then make the EditText in the activity as

    mEdtConfirmPassword = findViewById(R.id.edtPassword);
    mEdtConfirmPassword.setTransformationMethod(new PasswordTransformationMethod());
    

提交回复
热议问题