top of page
colors.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#3aaf61</color>
    <color name="colorPrimaryDark">#26743e</color>
    <color name="textColorPrimary">#FFFFFF</color>
    <color name="windowBackground">#FFFFFF</color>
    <color name="navigationBarColor">#000000</color>
    <color name="colorAccent">#c3f6d6</color>
</resources>
<!--
    colorPrimaryDark – Darkest primary color of the app,
    primarily used in the notification bar background.

    colorPrimary – This is the primary color of the app.
    Will be used as the toolbar background.

    textColorPrimary – Primary color of text seen in the toolbar title.

    windowBackground – The default background color.

    navigationBarColor – The background color to be used in the footer navigation bar.

    colorAccent - specify the color to use as a highlight when options are activated.
    -->
 

styles.xml

<resources>

    <style name="MyMaterialTheme" parent="MyMaterialTheme.Base">

    </style>

    <style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

</resources>

<!--
<resources>


<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

</resources>

-->
 

AndroidManifest.xmll

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mycompany.materialdesigndrawer">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/MyMaterialTheme">
<!--    android:supportsRtl="true"
This means your app is Right to Left Compatable
which this app does not need so I removed it
        android:theme="@style/AppTheme"
and this needs to be replaced with the new theme-->
        <activity android:name=".MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

 

bottom of page