Android - Using Custom Font

后端 未结 21 1981
别跟我提以往
别跟我提以往 2020-11-22 04:38

I applied a custom font to a TextView, but it doesn\'t seems to change the typeface.

Here is my code:

    Typeface myTypeface = Typeface         


        
21条回答
  •  一整个雨季
    2020-11-22 05:23

    The most simple solution android supported now!

    Use custom font in xml:

    
    

    look details:

    https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html

提交回复
热议问题