set custom font through xml

后端 未结 5 1784
忘掉有多难
忘掉有多难 2021-01-07 09:17

how can i set a font, whose ttf resides in my assets folder through xml? I know how to do that programmatically but how can you do that via xml? Thanks in adva

5条回答
  •  误落风尘
    2021-01-07 10:11

    You can do this by writing your custom TextView, otherwise you will have to set it programmatically. For more details see this link

提交回复
热议问题