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

[TextInputLayout] Add isActivated state for box stroke

Open
#1,776 1 comment 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 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.