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

[TextInputLayout] customized LABEL_SCALE_ANIMATION_DURATION field.

Open
#3,298 0 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.**
Currently there is no way to change LABEL_SCALE_ANIMATION_DURATION field value since it is private and extending the class doesn't work either.

**Describe the solution you'd like**
I was looking through for a way to customize this value so that when ever there is a click make on the TextInputLayout the label
movement speed is controlled.
Maybe some method.

**Describe alternatives you've considered**
I doesn't know any way to do this.
Please help me.

**Additional context**
Add any other context or screenshots about the feature request here.

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 locating TextInputLayout and its LABEL_SCALE_ANIMATION_DURATION field in the Android project. Review the surrounding label animation behavior and existing customization APIs before deciding what public method or configuration should be supported. Done means users can control the label movement speed through a documented, maintainable API.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.