caipivara
10/26/2014 - 9:15 PM

Style a toolbar widget in Android

Style a toolbar widget in Android

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar 
	xmlns:android="http://schemas.android.com/apk/res/android"					
	android:layout_height="wrap_content"
	android:layout_width="match_parent"
	android:minHeight="?attr/actionBarSize"
	style="@style/ToolbarDark" />
<resources>
	<style name="ToolbarDark" parent="Widget.AppCompat.Toolbar">
		<item name="android:background">@color/primary_dark_material_dark</item>
		<item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item>
		<item name="theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
	</style>
</resources>