How to display both icon and title of action inside ActionBar?

前端 未结 10 2031
庸人自扰
庸人自扰 2020-11-29 18:08

I need to display both icon and title of action inside ActionBar.

I\'ve tried \"withText\" option, but it has no

10条回答
  •  庸人自扰
    2020-11-29 18:49

    If any1 in 2017 is wondering how to do this programmatically, there is a way that i don't see in the answers

    .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
    

提交回复
热议问题