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

[TextInputLayout] prefix is overlap with text

Open
#4,231 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:**
I have TextInputLayout and TextInputEditText inside a recycler view. when using prefix, the prefix text overlaps with the text itself.
![Screenshot 2024-07-19 211946](https://github.com/user-attachments/assets/95ae6a45-6de8-4202-b3cb-46fbbb3a36b0)

**Expected behavior:**
prefix and actual text must not be overlap

**Source code:**
```



```

**Android API version:**
30 (Android 11)

**Material Library version:** Material Android Library version you are using here (e.g., 1.1.0-alpha07)
'com.google.android.material:material:1.12.0'
'com.google.android.material:material:1.13.0-alpha04'

**Device:** Device on which the bug was encountered here
Samsung A50

To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library.

We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).

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 issue from the provided TextInputLayout and TextInputEditText XML inside a RecyclerView with Material 1.12.0 or 1.13.0-alpha04 on Android API 30. Compare the prefix and entered text on the reported Samsung A50 configuration; done means the prefix and actual text no longer overlap.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.