material-components / material-components/material-components-android
[TextInputLayout] Set Text Appearance Style For Hint in Expanded State
Nobody has claimed this yet.
- 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
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 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