private void setSelectedNavDrawerItem(int itemId) {
        for(DrawerItem item: mDrawerItems){
            formatNavDrawerItem(item, itemId == item.getId());
        }
    }
private void setSelectedNavDrawerItem ( int itemId ) { for ( DrawerItem item : mDrawerItems ) { formatNavDrawerItem ( item , itemId == item . getId ( ) ) ; } }
Sets up the given navdrawer item's appearance to the selected state. Note: this could
also be accomplished (perhaps more cleanly) with state-based layouts.