You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 24.2.0, there is no way to align the baseline of the EditText surrounded by a TextInputLayout with the baseline of another component. I believe there are many situations where baseline alignment is required, such as showing an icon on the left of the input field, showing a unit label on the right of the field, and so on.
I am wondering if TextInputLayout could return the baseline position of its child with the getBaseline() method, the behaviour would be consistent and it would be helpful to many developers.
Thanks.
Screenshots/Video (if possible)
N/A
Stack trace (if possible)
N/A
Reproduction steps
In the below layout, @id/my_edit_text and @id/my_unit_label are not aligned on their baseline.
Overview
Context, problem or idea, solution or next step
Since 24.2.0, there is no way to align the baseline of the EditText surrounded by a TextInputLayout with the baseline of another component. I believe there are many situations where baseline alignment is required, such as showing an icon on the left of the input field, showing a unit label on the right of the field, and so on.
I am wondering if TextInputLayout could return the baseline position of its child with the
getBaseline()
method, the behaviour would be consistent and it would be helpful to many developers.Thanks.
Screenshots/Video (if possible)
N/A
Stack trace (if possible)
N/A
Reproduction steps
In the below layout,
@id/my_edit_text
and@id/my_unit_label
are not aligned on their baseline.Version number
25.1.0
Operating system and device
All Android OS and Android devices
Related issues
https://code.google.com/p/android/issues/detail?id=224553
The text was updated successfully, but these errors were encountered: