1

I can't load the menu items in the toolbar. I'm using the Drawer Navigation, and I can't even show the hamburger icon.

I'm using getSuportActionBar, my activity extends from ActionBarActivity, I added the toolbar xml into my activity xml.

SOLUTION

I found my solution here, I just added a LinearLayout as a parent in the toolbar

Appcompat Toolbar Not Showing With Navigation Drawer

2 Answers2

1

You can set your favorite icon and add a listener.

    mToolbar.setNavigationIcon(R.drawable.ic_drawer);
    mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            mDrawerLayout.openDrawer(Gravity.START);
        }
    });
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
0

I found my solution here, I just added a LinearLayout as a parent in the toolbar

Appcompat Toolbar Not Showing With Navigation Drawer

Community
  • 1
  • 1