New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BottomNavigationView - selector not working #283
Comments
@MFlisar so the default color tinting of that view does not work? How do you define the drawable? I remember there are some problems in the framework (for normal drawables at least) if you tint using the xml, you can no longer tint using code. There are also problems if you tint with a single color, and afterwards with a colorStateList. Have you tried to directly supply a In addition it could also be related to this: |
The default color tinting is working, the selected color tinting is not working. I use following simple selector (for text + icon):
I do following:
The BottomNavigationView defines following selectors:
Effect My icons are always white, even the selected ones whereas the lables are white (if not selected) or orange (if selected). As the |
It might be really related to the other problem of not switching the color later. have you also tryed the |
No, I haven't because the selector is working with a default drawable... But I'll add it and try it Edit: does not help.. |
Can you please try the previous version of Android-Iconics? I am curious if it really was that PR we merged |
I'll try that. Sadly, the missing invalidation (that I posted in the linked issue) I found in code is not the case when the tinting is changed... I'll try it later though, need to adjust a few things in code because I'm using the menu inflator wrapper from my pull request |
Oh ok sadly. :/ would have been an easy fix :D ok :) |
I tried invalidating the drawable manually in Here's the code from the
|
@MFlisar hmmm you tried the previous Iconics version right? |
Not yet. Which version should I try? I don't know where I see into which version this PR was merged |
I now tried v2.8.1, it does not support |
yes |
Tried v2.8.3 as well, everything working there as well... And then I tried adding the changes one by one, following is breaking the behaviour already: Changing only |
oh wait |
Just wanted to try this |
Tried the head branch and add the super call and it's working again :-)
I'm not sure what I should do with the super return value though... |
well looks good that way. Awasome. With that working again that means I will have to do a update. Possibly it also directly fixes: #278 |
Probably. I pushed the change to my branch, so it's part of my pull request now |
Merged your PR |
bottomNavigation.setItemIconTintList(null); |
Using
BottomNavigationView
does currently not work withIconicsDrawables
. The weird thing is that the default state color tinting works fine, but the selected state color is not working.Any ideas why? I checked the code and saw, tinting should be supported. And I check older issues and see that this should work, but it does not...
The text was updated successfully, but these errors were encountered: