Skip to main content

Color resources for android

Essential and beautiful color pallete for android applications. Just copy and paste the below code in styles.xml

    <color name="black">#333</color>
    <color name="white">#ffffffff</color>
    <color name="blue">#4184F3</color>
    <color name="red">#D40000</color>
    <color name="orange">#F3501D</color>
    <color name="yellow">#F5BE25</color>
    <color name="darkgreen">#0A7F42</color>
    <color name="seagreen">#33B779</color>
    <color name="lightblue">#029AE4</color>
    <color name="deepblue">#3F5CA9</color>
    <color name="lavender">#7885CA</color>
    <color name="deeppurple">#8D23A9</color>
    <color name="fadered">#E57B72</color>
    <color name="graphite">#636363</color>

Comments

Popular posts from this blog

Overriding fonts

make a java file with this code import java.lang.reflect.Field; import android.content.Context; import android.graphics.Typeface; public final class FontsOverride {     public static void setDefaultFont(Context context,             String staticTypefaceFieldName, String fontAssetName) {         final Typeface regular = Typeface.createFromAsset(context.getAssets(),                 fontAssetName);         replaceFont(staticTypefaceFieldName, regular);     }     protected static void replaceFont(String staticTypefaceFieldName,             final Typeface newTypeface) {         try {             final F...

Navigation drawer, material design theme

Aim: To make an android app with navigation drawer, material design theme Feat: Toolbar is used instead of the ActionBar, When the user runs the app for the time , he/she can see the drawer opened on the launch of the app, also rotation doesn't effect the drawer (whose layout is a fragment). Used: Fragments in both Code:   MainActivity.java ______________________________________________________________________________________________________ DrawerList.Java______________________________________________________________________________________________ package cts.fastester; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGr...