Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextInputLayout hint left padding [duplicate]

I have added a drawableLeft in and EditText enclosed in TextInputLayout. The position of hint of TextInputLayout is according to the text position(From left i.e. next to drawableLeft) as:

enter image description here

But I want the position of hint as below. enter image description here

Thank you.

like image 909
BST Kaal Avatar asked Nov 09 '22 07:11

BST Kaal


1 Answers

There's no way to currently do this. If you check out the TextInputLayout source, you can see that the hint takes the parent's compound padding into account. The CollapsingTextHelper is not part of the layout's public API, so you can't change its behavior easily.

Your best bet is to change your requirement for this padding or use some sort of custom layout to reach a compromise between effort and effect.

like image 184
npace Avatar answered Nov 15 '22 04:11

npace