question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Material 1.6.1 endIconTint ignored

See original GitHub issue

After updating com.google.android.material:material:1.5.0 to com.google.android.material:material:1.6.1,

usages of endIconTint (specifically, in a style, applied to a TextInput, but likely for other inputs as well) are now summarily ignored.

Setting endIconTint to any color no longer has any effect. Instead, the end icon appears to automatically tint itself to match the color of the text and to completely disregard endIconTint.

Anyone else experiencing? Any known workaround?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
drchencommented, Jun 13, 2022

yeah I totally agree we can probably have better API naming here.

I’ll raise this to our team for our future reference. Thanks for providing these valuable thoughts!!

0reactions
rmirabellecommented, Jun 13, 2022

Thanks again. I think it would be useful for the Android docs (not javadoc) to reflect the difference between endIcon and errorIcon. I find it a bit bewildering that setting endIconTint fails if the field is in error. Even in an error state, the endIcon is still an endIcon, isn’t it? Feels like the attribute should have been called endIconValidTint to clue the user in that setting the tint this way only works in the absence of an error. Similarly, it seems errorIconTint should have been called something like endIconErrorTint, so that it doesn’t seem like you’re dealing with a whole different object other than endIcon when there’s an error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Material 1.6.1 endIconTint ignored - Stack Overflow
There appears to be a breaking change/bug in the latest material design library. After updating com.google.android.material:material:1.5.0 ...
Read more >
[TextInputLayout] Using endIconTint property causes ... - GitHub
Description: Using the material design TextInputLayout and having added the endIconTint property to the XML file, the app crashes when run.
Read more >
Text fields - Material Design
Text fields let users enter, edit, and select text.
Read more >
material-components-android - bytemeta
material -components-android repo issues. ... Material 1.6.1 endIconTint ignored ... why all material popup menu in android app bar to slow for open....
Read more >
How to Use Material Text Input Layout in Android?
Material Design Components (MDC Android) offers designers and developers a way to implement ... app:endIconTint = "@color/colorPrimaryDark".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found