android - Change Material Design AppCompat ActionBar Color -
android - Change Material Design AppCompat ActionBar Color -
i used alter appcompat status bar color actionbarstyle
, , creating style background color want.
now, material design appcompat, method doesn't work anymore.
can help me? thanks.
there's new attribute called colorprimary
can define in theme. give actionbar or toolbar solid color.
following little example:
<style name="apptheme" parent="theme.appcompat.light"> <!-- colorprimary used default action bar background --> <item name="colorprimary">@color/my_action_bar_color</item> </style>
please note: has colorprimary
, not android:colorprimary
, in every values-folder except values-v21
one.
you can read more customizing color palette on developer.android.com.
android android-actionbar appcompat material-design
Comments
Post a Comment