Skip to content

[TextInputLayout] wrap the hint text #3110

Open
@bczhc

Description

@bczhc

When I set the hint text on TextInputLayout, it doesn't wrap the hint text when in wrap_content layout mode, like so:

I don't know if it's the intended result. But I want it expand the view and display the full hint text by default, like:

Currently my workaround is to add the same hint text to the child TextInputEditText and set android:textColorHint to transparent.

I searched and found this on Stackoverflow, but not finding an seemingly elegant way to achieve this. So may
I ask for an extra option or XML attribute if possible, to make the TIL wrap the hint text, or there can be a better way to do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions