@SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {'
// Handle navigation view item clicks here.
int id = item.getItemId();
Fragment fragment = null;
if (id == com.example.edwincastao_pc.app_gym.R.id.nav_search) {
fragment = new Search_Custom();'
} else if (id == com.example.edwincastao_pc.app_gym.R.id.nav_register) {
fragment = new Log_In();'
} else if (id == com.example.edwincastao_pc.app_gym.R.id.nav_delete) {
} else if (id == com.example.edwincastao_pc.app_gym.R.id.nav_manage) {
} else if (id == com.example.edwincastao_pc.app_gym.R.id.nav_info) {
} else if (id == com.example.edwincastao_pc.app_gym.R.id.nav_close) {
}
if (fragment != null) {
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.contenido, fragment).commit();
}
DrawerLayout drawer = (DrawerLayout) findViewById(com.example.edwincastao_pc.app_gym.R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;
}