Styling Android Action Bar

后端 未结 2 1195
陌清茗
陌清茗 2021-01-27 13:05

I\'ve a newly created project and the first thing I want to do is add and style an action bar. I made it the way they tell in their official tutorials and even tried some other

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-27 13:17

    Per the Using the Material Theme training, the Material theme (and AppCompat theme's which backport / use Material theming) use colorPrimary to color the action bar. Therefore your theme can be:

    
    

    You'll find more details on how to theme using AppCompat / Material in the AppCompat v21 blog post and in this pro-tip

提交回复
热议问题