Posts

Showing posts from November, 2015

How To Make Material Design Actionbar/Toolbar In 7 Simple Steps.

Image
Step 1. Open Android Studio and create a new project and select a blank activity. Step 2. Add Appcombat v7 Support library to your project or not if already. Step 3. Make new resources file "colors.xml", clear  it and add these to it. <?xml version="1.0" encoding="utf-8"?> <resources>     <color name="ColorPrimary">#FF5722</color>     <color name="ColorPrimaryDark">#E64A19</color> </resources> Step 4. Open "style.xml",  clear it and add these to it. <resources>     <item name="colorPrimary">@color/ColorPrimary</item>         <item name="colorPrimaryDark">@color/ColorPrimaryDark</item>     <!-- Base application theme. -->     <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">         <item name="colorPrimary">@color/ColorPrimary</item>