How to change the font in a TextView
, as default it\'s shown up as Arial? How to change it to Helvetica
?
I finally got a very easy solution to this.
use these Support libraries in app level gradle,
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.android.support:support-v4:26.0.2'
then create a directory named "font" inside the res folder
After that, reference that font from xml like this
In this example, times_new_roman_test is a font ttf file from that font directory