Changing the Action bar icon

前端 未结 7 1555
栀梦
栀梦 2020-12-10 15:44

I\'m currently implementing theme support for my application and a part of it is changing the action bar app icon. I want to use a dark icon when Holo Light is selected. Eve

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 16:17

    Calling to setIcon wasn't enough for me.

    Before that, I had to switch the display from activity logo to activity icon:

    actionBar.setDisplayUseLogoEnabled(false);
    

    For the differences between activity icon and logo see Android icon vs logo.

提交回复
热议问题