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?


Same problem:


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.


Related questions

No questions were found.
Github User Rank List