Verified Commit 0d371064 authored by Andreas Redmer's avatar Andreas Redmer 👍

made main toolbar contain only useful things. closes #9

parent 7a71ec3c
Pipeline #35860206 passed with stages
in 6 minutes and 29 seconds
......@@ -411,22 +411,14 @@ public class MainActivity extends AppCompatActivity
public boolean onNavigationItemSelected(MenuItem item) {
// Handle navigation view item clicks here.
int id = item.getItemId();
if (id == R.id.nav_camera) {
// Handle the camera action
//Intent myIntent = new Intent(this, TempTabActivity.class);
//myIntent.putExtra("key", value); //Optional parameters
//this.startActivity(myIntent);
} else if (id == R.id.nav_gallery) {
} else if (id == R.id.nav_slideshow) {
} else if (id == R.id.nav_manage) {
} else if (id == R.id.nav_share) {
} else if (id == R.id.nav_send) {
BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);
if (id == R.id.nav_my_apps) {
navigation.setSelectedItemId(getItemIdForHomeScreenMenuItem("myapps"));
// } else if (id == R.id.nav_gallery) {
// } else if (id == R.id.nav_slideshow) {
// } else if (id == R.id.nav_manage) {
// } else if (id == R.id.nav_share) {
// } else if (id == R.id.nav_send) {
}
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
......
......@@ -23,34 +23,34 @@
<group android:checkableBehavior="single">
<item
android:id="@+id/nav_camera"
android:icon="@drawable/ic_menu_camera"
android:title="Import" />
<item
android:id="@+id/nav_gallery"
android:icon="@drawable/ic_menu_gallery"
android:title="Gallery" />
<item
android:id="@+id/nav_slideshow"
android:icon="@drawable/ic_menu_slideshow"
android:title="Slideshow" />
<item
android:id="@+id/nav_manage"
android:icon="@drawable/ic_menu_manage"
android:title="Tools" />
android:id="@+id/nav_my_apps"
android:icon="@drawable/ic_apps_black_24dp"
android:title="My apps" />
<!--<item-->
<!--android:id="@+id/nav_gallery"-->
<!--android:icon="@drawable/ic_menu_gallery"-->
<!--android:title="Gallery" />-->
<!--<item-->
<!--android:id="@+id/nav_slideshow"-->
<!--android:icon="@drawable/ic_menu_slideshow"-->
<!--android:title="Slideshow" />-->
<!--<item-->
<!--android:id="@+id/nav_manage"-->
<!--android:icon="@drawable/ic_menu_manage"-->
<!--android:title="Tools" />-->
</group>
<item android:title="Communicate">
<menu>
<item
android:id="@+id/nav_share"
android:icon="@drawable/ic_menu_share"
android:title="Share" />
<item
android:id="@+id/nav_send"
android:icon="@drawable/ic_menu_send"
android:title="Send" />
</menu>
</item>
<!--<item android:title="Communicate">-->
<!--<menu>-->
<!--<item-->
<!--android:id="@+id/nav_share"-->
<!--android:icon="@drawable/ic_menu_share"-->
<!--android:title="Share" />-->
<!--<item-->
<!--android:id="@+id/nav_send"-->
<!--android:icon="@drawable/ic_menu_send"-->
<!--android:title="Send" />-->
<!--</menu>-->
<!--</item>-->
</menu>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment