title: Navigation Drawer lag on Android
body: <p>I'm having a problem with Navigation Drawer , it is too slow, the solution I'm looking for is to close the drawer first and then show the activity, but It is not working, certainly I'm missing something. </p>
  
  <pre><code>private class DrawerItemClickListener implements ListView.OnItemClickListener {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int posicao, long id) {
              setLastPosition(posicao);
              setFragmentList(lastPosition);
              layoutDrawer.closeDrawer(linearDrawer);
          }
      }
  
      private OnClickListener userOnClick = new OnClickListener() {
          @Override
          public void onClick(View v) {
              layoutDrawer.closeDrawer(linearDrawer);
          }
      };
  
      private void setFragmentList(int posicao) {
  
          FragmentManager fragmentManager = getSupportFragmentManager();
          Fragment fragment = new FragmentViagens();
  
          switch (posicao) {
  
              case 0:
                  fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();
                  break;
              case 1:
                  fragmentManager.beginTransaction().replace(R.id.content_frame, new FragmentPedidos()).commit();
                  break;
              case 2:
                  fragmentManager.beginTransaction().replace(R.id.content_frame, new FragmentClientes()).commit();
                  break;
  
          }
  
          navigationAdapter.setChecked(posicao, true);
          setTitleFragments(lastPosition);
          navigationAdapter.resetarCheck();
          layoutDrawer.closeDrawer(linearDrawer);
  
      }
  </code></pre>