profile
viewpoint

Ask questionsNav-Framework is nice, however, it create fragment's view every time when people click menu-item on drawer-layout

I use NavController + DrawerLayout, set some menu-items on the drawer, it seems automatically setup the drawer, it's cool. But, each time I click one item on the drawer and click the same item several times, the Nav will navigate to the same fragment and onCreateView will be called each time, it's so SAD! It's definitive a bug because the initializing of a view is not cheap.

Any idea?

issues

Same problem: https://github.com/googlesamples/android-sunflower/issues/117

android/architecture-components-samples

Answer questions Aravindh1505

Still, the issue exists!. I think we have to move older way instead of the navigation component.

@ianhanniballake do you have any sample code for this issue. without a solution how you close this one.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List