Material 1.6.1 endIconTint ignored
See original GitHub issueAfter 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:
- Created a year ago
- Comments:7 (4 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!!
Thanks again. I think it would be useful for the Android docs (not javadoc) to reflect the difference between
endIcon
anderrorIcon
. I find it a bit bewildering that settingendIconTint
fails if the field is in error. Even in an error state, theendIcon
is still anendIcon
, isn’t it? Feels like the attribute should have been calledendIconValidTint
to clue the user in that setting the tint this way only works in the absence of an error. Similarly, it seemserrorIconTint
should have been called something likeendIconErrorTint
, so that it doesn’t seem like you’re dealing with a whole different object other thanendIcon
when there’s an error.