Tecnologia do Blogger.
RSS

[androidbrasil-dev] Navigation Drawer

Gente eu tenho esse menu aqui:

@Override
public boolean onNavigationItemSelected(MenuItem item) {
// Navegação de PAGES .
// Navegação de PAGES .
int id = item.getItemId();

if (id == R.id.nav_event) {
} else if (id == R.id.nav_gallery) {
} else if (id == R.id.nav_list) {

} else if (id == R.id.nav_explore) {

} else if (id == R.id.nav_circulo) {
} else if (id == R.id.nav_oração) {
} else if (id == R.id.nav_divulgue){
}else if (id == R.id.nav_pedidos) {
} else if (id == R.id.nav_news) {
} else if (id == R.id.nav_biblia) {
}


DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);

return true;


}

ai estou em duvida como posso fazer eles de botão e passar para uma nova activity.. como faço?

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário