Set specific font in a styles.xml

后端 未结 5 1710
滥情空心
滥情空心 2020-12-01 07:36

I\'m defining a style XML for my android app. I have some TTF files I want to use, how can I set the typeface to use those files as the font as opposed to the generic \"san

5条回答
  •  天涯浪人
    2020-12-01 08:37

    You can only use custom fonts via Java code, not through layout XML or styles/themes -- sorry!

提交回复
热议问题