How to customize the back button on ActionBar

后端 未结 9 1175
抹茶落季
抹茶落季 2020-11-22 17:12

I have been able to customize the action bar\'s background, logo image and text color using suggestions from these:
Android: How to change the ActionBar "Home"

9条回答
  •  心在旅途
    2020-11-22 17:27

    If you are using Toolbar, you don't need those solutions. You only have to change the theme of the toolbar

    app:theme="@style/ThemeOverlay.AppCompat.Light"
    
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    

    If you are using a dark.actionBar your back button is going to be white else if you are using light actionbar theme it is going to be black.

提交回复
热议问题