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:
But I want the position of hint as below.
Thank you.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With