Saturday, January 4, 2014

Using custom fonts in Android

In Android their is support for adding custom fonts using Typeface in java file.

But it would be more helpful if Typeface can set in XML file just like setting default android fonts android:typeface="sans"

So first of all i assigned all the fonts prefixed with numbers


Then have a look at this code snippet