The idea of defining custom typeface via XML is simple: extend TextView, add custom XML attribute and create Typeface objects using one of static Typeface class methods (we will use createFromAsset(AssetManager mgr, String path)). Google suggests developers to use Roboto fonts. Download fonts and add *.ttf files to assets/fonts folder. In this example, we didn’t […]
↧