Materialdrawer: Jetpack Navigation Compatibility

Created on 1 Apr 2019  路  9Comments  路  Source: mikepenz/MaterialDrawer

Is this library compatible with AndroidX Jetpack's Navigation-UI?

e.g. mDrawer.setupWithNavController(...)

enhancement help wanted question

All 9 comments

There is no direct dependency to it. This library provides all listeners and callback you might need to implement navigation.

Would it be a possibility feature/improvement?

Actually, this is the only reason why I don't want / can't use this library...

Currently I have no plan yet to directly integrate as it should be possible out of the box via using the listeners. and invoke the relevant calls.

It might also be possible to write a plugin which hooks up a listener and coordinates with the navigation components if required.

I am open for more input of people if that is really needed to improve

not sure why but in my current project the combination of material drawer library, BottomNavigationView and jetpack navigation components leads to a weird bug where the current fragment gets zero width/height after few navigations (just tabbing bottom navigation tabs few times)

it only occurs when i have material drawer added

@kibotu I am 99% sure that you have a version conflict. The latest MaterialDrawer RC uses the Material Components 1.1.0-beta08 due to the Shape framework which was embedded into the drawer.

If you used older versions of the MaterialComponents that most likely will cause conflicts

thanks for the info @mikepenz, i will check the versions throughout the project

@mikepenz Could you provide a document or sample to show how to integrate Navigation with MaterialDrawer

@mikepenz That's fast. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fuentepa picture fuentepa  路  3Comments

AlexMercier picture AlexMercier  路  3Comments

Ahmed-Emad picture Ahmed-Emad  路  4Comments

wayne1203 picture wayne1203  路  3Comments

ghost picture ghost  路  3Comments