How to remove Navigation drawer icon

2019-01-26 05:00发布

How to remove pointed icon in Navigation Drawer, I just playing with Navigation Drawer, I just wanted to maintain only one icon. enter image description here

3条回答
再贱就再见
2楼-- · 2019-01-26 05:51

Which implementation are you using for the Navigation Drawer?

Also, why do you want to remove it? You could keep the icon there and use an actual icon instead of one trying to show that it is a menu next to your "Home" text.

查看更多
Juvenile、少年°
3楼-- · 2019-01-26 05:53

Is it a bit too late for answer?

1 way to remove the 3 stripes from the app is

replace the ic_drawer.png in every drawable folder with nothing (eg. with transparent icon)

You also can replace with any icon you want too.

查看更多
啃猪蹄的小仙女
4楼-- · 2019-01-26 06:07

I had same issue and I solved with adding this line in onCreate():

getActionBar().setDisplayHomeAsUpEnabled(false);

it will hide icon from navigation drawer.

查看更多
登录 后发表回答