<resources>

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/cyan</item>
        <item name="colorPrimaryDark">@color/cyan_dark</item>
        <item name="colorAccent">@color/green</item>
        <item name="android:textColorPrimary">@color/white</item>
    </style>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="AppTheme.NoActionBar.WhiteBackground">
        <item name="android:windowBackground">@color/white</item>
    </style>

    <style name="FlatButton">
        <item name="android:textAppearance">@style/FlatButton.TextAppearance</item>
        <item name="android:background">?attr/selectableItemBackground</item>
        <item name="android:paddingRight">8dp</item>
        <item name="android:paddingLeft">8dp</item>
        <item name="android:minWidth">64dp</item>
    </style>

    <style name="FlatButton.TextAppearance" parent="TextAppearance.AppCompat.Button">
        <item name="android:textColor">?android:attr/colorAccent</item>
    </style>


</resources>

<resources>

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/cyan</item>
        <item name="colorPrimaryDark">@color/cyan_dark</item>
        <item name="colorAccent">@color/green</item>
        <item name="android:textColorPrimary">@color/white</item>
    </style>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="AppTheme.NoActionBar.WhiteBackground">
        <item name="android:windowBackground">@color/white</item>
    </style>

    <style name="FlatButton">
        <item name="android:textAppearance">@style/FlatButton.TextAppearance</item>
        <item name="android:background">?attr/selectableItemBackground</item>
        <item name="android:paddingRight">8dp</item>
        <item name="android:paddingLeft">8dp</item>
        <item name="android:minWidth">64dp</item>
    </style>

    <style name="FlatButton.TextAppearance" parent="TextAppearance.AppCompat.Button">
        <item name="android:textColor">?attr/colorAccent</item>
    </style>

</resources>

Fix crash on pre Lollipop devices
Fix crash on pre Lollipop devices
