mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.67k stars 2.05k forks source link

Log contains a lot of messages: bindView method of this item should set the `Tag` on its itemView #2729

Closed panovvitalik closed 2 years ago

panovvitalik commented 3 years ago

drawerBuilder.withSelectedItem(-1); // to hide selection of any menu item Drawer mMenu = drawerBuilder.build();



## Details
- [ ] Used library version: 
com.mikepenz:materialdrawer:6.1.2

- [ ] Used support library version: 
'androidx.legacy:legacy-support-v4:1.0.0'
'androidx.legacy:legacy-support-v4:1.0.0'
'androidx.legacy:legacy-support-v13:1.0.0'

- [ ] Used gradle build tools version: 
com.android.tools.build:gradle:4.2.1

- [ ] Android Studio version:
4.2.1

How can I resolve this issue? 
panovvitalik commented 3 years ago

Possibly problem is in ExpandableDrawerItem or SecondaryDrawerItem classes.

When the menu contains only PrimaryDrawerItem items no such many error messages. In this case there is only one message - when menu appears

mikepenz commented 3 years ago

Yes it could be that for expandable items this condition is not reached: https://github.com/mikepenz/FastAdapter/blob/develop/fastadapter/src/main/java/com/mikepenz/fastadapter/listeners/OnBindViewHolderListenerImpl.kt#L24

mikepenz commented 2 years ago

It looks you are using the library still via Java.

Please note that only the latest version retrieves updates: https://github.com/mikepenz/MaterialDrawer#latest-releases- (v8.4.3) which is targeted for Kotlin.

Testing this with this version does not lead to this problem. Please consider to update the library

panovvitalik commented 1 year ago

It looks you are using the library still via Java.

Please note that only the latest version retrieves updates: https://github.com/mikepenz/MaterialDrawer#latest-releases- (v8.4.3) which is targeted for Kotlin.

Testing this with this version does not lead to this problem. Please consider to update the library

Yes. But I can't use kotlin lib due to this bug:

2786