material-components / material-components/material-components-android
TextInputLayout app:suffixText adds a line break
Open
Nobody has claimed this yet.
bug
Widget: TextField
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
When a textinputlayout is added within a custom view and a suffixText is added, the input adds a line break.

XML

Android API version: 29
Material Library version: 1.2.0-alpha05
Device: Motorola G8 Plus,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported TextInputLayout behavior in a custom view on Android API 29 with app:suffixText, using the XML and screenshots in the issue. Trace the layout and text-wrapping behavior, then verify that adding the suffix no longer introduces an unintended line break.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100