目前我正在使用pixlui库来使用自定义字体,效果非常好! https://github.com/neopixl/PixlUI
有没有办法在Android Studio中预览自定义字体呢?
目前我正在使用pixlui库来使用自定义字体,效果非常好! https://github.com/neopixl/PixlUI
有没有办法在Android Studio中预览自定义字体呢?
https://github.com/smart-fun/SmartFonts
享受!
很遗憾,PixelUI设置字体的方式在预览器中不起作用。
他们只在一个构造函数中设置字体,如下所示: https://github.com/neopixl/PixlUI/blob/master/Library/src/com/neopixl/pixlui/components/textview/TextView.java
编辑器使用的是第二个构造函数,在以这种方式构建TextView时不会设置字体。