material-components / material-components/material-components-android
[TextInputLayout] Add isActivated state for box stroke
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.**
Currently internally TextInputLayout doesn't use the ColorStateLists like other views do (but only ints) and therefore we can not set some states (**isActivated**, **isChecked** and custom ones) like we are able to do in other views.
**Describe the solution you'd like**
Please use ColorStateLists instead of Ints internally and add a support for **isActivated** state.
**Describe alternatives you've considered**
None. This view looks like it was created by a junior developer, who didn't have any idea how all views are being made in Android OS. Please assign a senior and do it a right way (not joking).
**Additional context**
None.
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 by locating TextInputLayout and the code that manages its box stroke colors and state. Review how its ColorStateLists are currently represented, then verify that activated and other view states affect the stroke consistently with existing Android view behavior; add or update focused tests if the project provides them.
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
- 38/100