8. Material Theme
Customize the color palette
<resources>
<!-- inherit from the material theme -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- Main theme colors -->
<!-- your app branding color for the app bar -->
<item name="android:colorPrimary">@color/primary</item>
<!-- darker variant for the status bar and contextual app bars -->
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<!-- theme UI controls like checkboxes and text fields -->
<item name="android:colorAccent">@color/accent</item>
</style>
</resources>
10. Typography
scale-independent pixel (sp)
a unit of length for specifying the size of a font of
type. Its length depends on the user’s preference for
font size, set in the Settings app of the Android
device.
Tips
?android:textAppearanceSmall (14sp)
?android:textAppearanceMedium (18sp)
?android:textAppearanceLarge ( 22sp)
<TextView
...
android:textAppearance="?android:textAppearanceLarge"
android:textColor="@color/my_own_color"
android:textColorLink="@color/my_own_link_color"/>
11. Typography (Color & Contrast)
A text color that is too similar to the background color
is hard to read. Text with too much contrast can also be
hard to read. This is especially true of light-colored text
against dark backgrounds.
13. Drawable Resources
What are these for ?
drawable - for xml shapes
drawable-hdpi - for 240 dpi devices
drawable-mdpi - for 160 dpi devices
drawable-nodpi - for images which shouldn’t scale
based on density
drawable-xhdpi - for 320 dpi devices
drawable-xxhdpi - for 480 dpi devices
drawable-xxxhdpi - for approximately 640 dpi devices
For more : http://developer.android.com/guide/topics/resources/providing-resources.html
Language based resources - drawable-mdpi-my
23. Material Design Lite
http://getmdl.io
● Material Design Lite lets you add a Material Design look and feel to your websites.
● doesn’t rely on any JavaScript frameworks and aims to optimize for cross-device use
● gracefully degrade in older browsers, and offer an experience that is immediately
accessible.
27. Other MD frameworks for your web projects
● MaterializeCSS (http://materializecss.com/)
● Material Design for Bootstrap (https://fezvrasta.github.io/bootstrap-material-
design/)
● Angular Material (https://material.angularjs.org)
And much more ….