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

[TextInputLayout] Prefix not aligned correctly when phone font size is changed

Open
#773 15 comments 10 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

Description: The prefix horizontal alignment is not correct when the font size of the phone is changed, it seems to be a bit higher from the text inside the TextInputEditText

Expected behavior: Should be aligned correctly the TextInputEditText

Android API version: Android 10

Material Library version: 1.2.0-alpha01

Device: Samsung Galaxy s10

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 prefix alignment problem in TextInputLayout with a TextInputEditText after changing the phone font size, using the reported Android 10 and Material Library 1.2.0-alpha01 context. Inspect the TextInputLayout/TextInputEditText implementation and existing tests, then verify that the prefix aligns with the input text across the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
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.