Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- I want to set the toolbarStyle for all toolbars here, including the overlay android:theme -->
- <style name="AppThemeAppCompat" parent="Theme.AppCompat.Light.DarkActionBar">
- <!-- Customize your theme here. -->
- <item name="colorPrimary">@color/colorPrimary</item>
- <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
- <item name="colorAccent">@color/colorAccent</item>
- <item name="windowActionBar">false</item>
- <item name="windowNoTitle">true</item>
- <item name="toolbarStyle">@style/ToolbarStyle</item>
- <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
- </style>
- <!-- I want all toolbars by default to be styled like this -->
- <style name="ToolbarStyle" parent="Widget.AppCompat.Toolbar">
- <item name="android:background">?colorPrimary</item>
- <item name="android:minHeight">?actionBarSize</item>
- <item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item>
- <item name="android:theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
- </style>
- <!-- In a layout I want to just use a toolbar like: -->
- <android.support.v7.widget.Toolbar
- android:id="@+id/sign_in_toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"/>
- <!-- This toolbar doesn't pick up the android:theme attribute from styles -->
RAW Paste Data