Skip to content

Instantly share code, notes, and snippets.

@danielgomezrico
Created October 26, 2014 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgomezrico/aacff103ed06dcd9c8f3 to your computer and use it in GitHub Desktop.
Save danielgomezrico/aacff103ed06dcd9c8f3 to your computer and use it in GitHub Desktop.
Style a toolbar widget in Android
<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>
<?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" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment