How to change Toolbar Navigation and Overflow Menu icons (appcompat v7)?

后端 未结 11 1789
离开以前
离开以前 2020-11-29 19:11

I am having a hard time with v7 Toolbar. What was once a simple task for ActionBar, now seems overly complex. No matter what style I set, I cannot change either

11条回答
  •  清酒与你
    2020-11-29 20:09

    In order to show the icon, use getSupportActionBar().setIcon(R.xxx.xxx)

    In my case the code is:-

    getSupportActionBar().setIcon (R.mipmap.ic_launcher);

提交回复
热议问题