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

[TextInputLayout] Set Text Appearance Style For Hint in Expanded State

Open
#2,104 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: TextField
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
A way to specify different attributes such as font size, letter spacing, font family, etc for hint text in expanded state (i.e when edit text is empty and unfocused). The current `hintTextAppearance` attribute seems to work only on floating/collapsed state.

**Additional context**
Will there be a problem if we allow `collapsingTextHelper` or other such properties of TextInputlayout class to be public so that they can be overridden in our own custom classes?

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 with TextInputLayout and its collapsingTextHelper, then trace how hintTextAppearance is applied in the expanded and floating states. Determine the supported way to provide separate expanded-state attributes, and confirm that the resulting hint can use the requested typography without exposing unsupported internals.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.