Android自定义ActionBar背景颜色
修改前后效果图:
在style.xml里加一行代码搞定
@color/green
那为什么是"colorPrimary"呢,一层一层找
这里已经出现“colorPrimary"了
@style/ThemeOverlay.AppCompat.Light
@null
@style/ThemeOverlay.AppCompat.Dark.ActionBar
@drawable/abc_list_selector_holo_dark
@color/primary_dark_material_dark
@color/primary_material_dark
找到”actionBarStyle“
true
false
true
@drawable/abc_item_background_holo_light
?attr/selectableItemBackground
@drawable/abc_i