material-components / material-components/material-components-android

TextInputLayout app:suffixText adds a line break

Open
#1,094 6 comments 2 reactions 0 assignees View on GitHub

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.

Screenshot_1583516759

XML
Captura de Pantalla 2020-03-06 a la(s) 11 55 48

Android API version: 29

Material Library version: 1.2.0-alpha05

Device: Motorola G8 Plus,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.