Android navigation drawer hamburger height and width

1.7k views Asked by At

hamburger icon in toolbar

how to set height and width of this icon? i have attached the screenshot, following is my code for setting this custom icon:

    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this , drawer , toolbar, R.string.navigation_drawer_open , R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(false);
    toggle.setDrawerIndicatorEnabled(false);
    toggle.setHomeAsUpIndicator(R.drawable.menu_white);
    toggle.syncState();
    toggle.setToolbarNavigationClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view)
        {
            DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
            if (drawer.isDrawerOpen(GravityCompat.START))
            {
                drawer.closeDrawer(GravityCompat.START);
            }
            else
            {
                drawer.openDrawer(GravityCompat.START);
            }
        }
    });

Anyone can suggest what to do in this situation?

0

There are 0 answers