Para esconder o menu após o usuário selecionar um item basta você fazer o seguinte código no click do item:
drawerLayout.closeDrawer(lst);
Um exemplo de como fazer todo o processo:
private DrawerLayout drawerLayout;
private ListView lst;
private ActionBarDrawerToggle mDrawerToggle;
private DrawerLayoutAdapter drawerLayoutAdapter;
No onCreate da sua Activity faça o seguinte código:
mDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, R.drawable.ic_drawer,
R.string.drawer_open, R.string.drawer_close) {
public void onDrawerOpened(View drawerView) {
super.onDrawerOpened(drawerView);
}
/** Called when a drawer has settled in a completely closed state. */
public void onDrawerClosed(View view) {
super.onDrawerClosed(view);
}
};
mDrawerToggle.setDrawerIndicatorEnabled(true);
drawerLayout.setDrawerListener(mDrawerToggle);
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setIcon( new ColorDrawable(getResources().getColor(android.R.color.transparent)));
E no click do item : drawerLayout.closeDrawer(lst);
ExampleFragment fragment = new ExampleFragment(); fragmentTransaction.add(R.id.fragment_container, fragment); fragmentTransaction.commit();