android - ActionBar style as theme is ignored -
i'm having following setup:
toolbar.xml
<android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res/com.citylifta" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" app:theme="@style/actionbartheme" />
themes.xml:
<style name="apptheme" parent="theme.appcompat.light.darkactionbar"> <item name="windowactionbar">false</item> <item name="actionbartheme">@style/actionbartheme</item> </style> <style name="actionbartheme" parent="themeoverlay.appcompat.dark.actionbar"> <item name="android:textallcaps">true</item> <item name="android:background">@color/dark_button</item> </style>
now, if omit attr app:theme="@style/actionbartheme"
, toolbar gets totally black...
how define toolbar's styling part of apptheme properly?
Comments
Post a Comment