Material Theme Android Action Bar Style Generator-ThrowExceptions

Exception or error:

Is there Android Action Bar Style Generator for the Material Themes ?

I’m looking for something like this but with the support new Material Style for Android (not Holo style).

Thanks for advance 🙂

How to solve:

Material theme uses tinting and simple shapes to generate UI. You don’t need any generator, because there’s no 9-patches nor any other graphic. Just set your colors in your theme (primary, accent, etc.) and you’re ready to go.


As described in the tool:

DEPRECATED: Consider using Toolbar or its support library equivalent.

Use the AppCompat library and just set these values in your styles.xml

<style name="Theme.MyTheme" parent="Theme.AppCompat.Light">
    <!-- colorPrimary is used for the default action bar background -->
    <item name="colorPrimary">@color/my_color</item>

    <!-- colorPrimaryDark is used for the status bar -->
    <item name="colorPrimaryDark">@color/my_darker_color</item>

    <!-- colorAccent is used as the default value for colorControlActivated, which is used to tint widgets -->
    <item name="colorAccent">@color/accent</item>

    <!-- You can also set colorControlNormal, colorControlActivated
         colorControlHighlight, and colorSwitchThumbNormal. -->


Leave a Reply

Your email address will not be published. Required fields are marked *