-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Problem with selection in minidrawer #2688
Comments
@raffaa you mean you implemented a custom If not you may have to enable |
Hi mike, yeah I mean MiniDrawerItem, I provided a test project made up really really quickly so there might be some stupid errors (😄 ) but the problem is reproduced. I will dig into this "problem" in the next days |
I made some tests, form my trials it came up that bindView is called only on the miniItem selected (the "PrimaryItem"'s bindView is called on all elements correctly). |
@raffaa so I looked further into this and it looks like the problem is related to the I'll see to provide an updated release with a fix for this |
…ents before the `onDrawerItemClickListener` - FIX #2688 - Note: This is a potential breaking change as it's no longer possible to consume the event from the `onDrawerItemClickListener` before informing the `miniDrawer` (which in general should be seen as an exception regardless, as it will prevent both to stay in sync)
Hi @mikepenz now it works, thanks!!
|
I will follow up on the first little bug you mentioned. The second thing seems to may result from the tinting. be careful when using the same drawable for multiple views, with tinting. usually you should mutate all of them and try to have unique states for all of them, otherwise they may affect each other |
I didn't quite catch what you mean by "The second thing seems to may result from the tinting.". I treid to set isIconTinted to false and with this disabled when corssfading the color is mantained correctly but then it wont work the color change on the selection. Here's a video of the "problem": GDrive Link |
I'd suggest you to cleanup your items as much as possible, most of the flexible tinting, ... stuff is not really relevant for your usecase as those things are only in the items for the super flexible API the library has to offer. in your project I think you can eliminate most of these things. The video looks to me like a shared drawable state is causing this, or some wrong state itself of the view. the provided default items update the colors based on the view state using the android default state mechanisms and it fully depends on those to do their job :/ |
Also the default items in my project have the same behavior, I tried to clean all my modifications and also then I was having the same issue. Then I changed the valorization of the icon, in particular I changed and all seems working as expected Thank you for your precious support 👍 |
About this issue
The scenario is that when I select an Item i want the drawable icon to change color, in the expanded view all seems to work properly, in the collapsed one the view do not change color.
Details
Checklist
The text was updated successfully, but these errors were encountered: