Android text style missing light, medium, thin,

◇◆丶佛笑我妖孽 提交于 2019-12-03 04:36:46

This is font specific. Not all fonts have a light, medium, thin attribute/style, but the default font should. You can use the default light font by using fontFamily: sans-serif-light or for thin, fontFamily: sans-serif-thin.

For custom fonts, you would need to include the light version of the font and use it.

You can only combine those three attributes :

  • normal
  • bold
  • italic

http://developer.android.com/reference/android/widget/TextView.html#attr_android:textStyle

So it can be :

  • normal
  • bold
  • italic
  • bold | italic
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!