TextInputLayout :How to give padding or margin to hint?

后端 未结 15 1896
离开以前
离开以前 2020-11-28 06:42

I have to use TextInputLayout of design support library in my project. I want to give space between hint and EditText in TextInp

15条回答
  •  时光说笑
    2020-11-28 07:22

    If the requirement is to add space between cursor and hint then you can try

    editTextComment.setHint("  "+getString(R.string.add_a_comment));
    

提交回复
热议问题