diff --git a/app/src/main/java/com/example/cosmosclient/views/GroupList.java b/app/src/main/java/com/example/cosmosclient/views/GroupList.java index b512f02..30f6f2a 100644 --- a/app/src/main/java/com/example/cosmosclient/views/GroupList.java +++ b/app/src/main/java/com/example/cosmosclient/views/GroupList.java @@ -28,7 +28,7 @@ Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); - /*とりあえずの画面遷移なので変更するかも*/ + /* とりあえずの画面遷移なので変更するかも */ TextView group1 = findViewById(R.id.group1); group1.setOnClickListener(new View.OnClickListener() { @Override @@ -38,6 +38,7 @@ } }); + DrawerLayout drawer = findViewById(R.id.drawer_layout); NavigationView navigationView = findViewById(R.id.nav_view); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( @@ -82,10 +83,18 @@ @SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { + + // Handle navigation view item clicks here. int id = item.getItemId(); if ( id == R.id.createNewGroupButton){ + } else if (id == R.id.joinGroupButton){ + //Intent intent=new Intent(GroupList.this, com.example.cosmosclient.views.QRcodeReadingActivity.class); + //startActivity(intent); + } else if (id == R.id.signOutButton){ + Intent intent=new Intent(GroupList.this, com.example.cosmosclient.views.SigninActivity.class); + startActivity(intent); } /* if (id == R.id.nav_home) {