Skip to content

[TextInputLayout] Allow setting different values boxStrokeColor and hint text color in disabled state #789

@roman-tikonov

Description

@roman-tikonov

I'd like to set a box stroke color in disabled state to one color, and at the same time set label text color to another color. Currently it's not possible, as both color values are taken from disabledColor:

Stroke color (code from TextInputLayout v1.2.0-alpha02):

if (!isEnabled()) {
      boxStrokeColor = disabledColor;
    } 

Hint color:

if (!isEnabled) {
      collapsingTextHelper.setCollapsedTextColor(ColorStateList.valueOf(disabledColor));
      collapsingTextHelper.setExpandedTextColor(ColorStateList.valueOf(disabledColor));
    } 

I'd like to be able to style them separately via custom attributes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions