title: Android Navigation Component has lag when navigating through NavigationDrawer
body: <p>I am updating my app to Navigation Architecture Components and I see that it has a lag replacing fragments which is visible in the NavigationDrawer that does not close smoothly.</p>
  
  <p>Until now, I was following this approach:</p>
  
  <p><a href="https://vikrammnit.wordpress.com/2016/03/28/facing-navigation-drawer-item-onclick-lag/" rel="noreferrer">https://vikrammnit.wordpress.com/2016/03/28/facing-navigation-drawer-item-onclick-lag/</a></p>
  
  <p>So I navigate in <code>onDrawerClosed</code> instead than in <code>onNavigationItemSelected</code> to avoid the glitch.</p>
  
  <p>This has been a very common issue, but it is back again. Using the Navigation Component, it is laggy again and I don't see a way to have it implemented in <code>onDrawerClosed</code>.</p>
  
  <p>These are some older answers prior to Navigation Component</p>
  
  <p><a href="https://stackoverflow.com/questions/25534806/navigation-drawer-lag-on-android">Navigation Drawer lag on Android</a></p>
  
  <p><a href="https://stackoverflow.com/questions/17491557/drawerlayouts-item-click-when-is-the-right-time-to-replace-fragment?noredirect=1&amp;lq=1">DrawerLayout&#39;s item click - When is the right time to replace fragment?</a></p>
  
  <p>Thank you very much.</p>