How to remove toolbar button v7

I need to remove this v7 toolbar from my activity:

enter image description here

Please help me!

+4
source share
1 answer

If you use the V7 toolbar, you can remove this button with this code:

ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(false);

You can read android here and here for more info. also this one can help

+8
source

Source: https://habr.com/ru/post/1622938/


All Articles