How do I set the font family on API level 15? The docs say API 15 does have the fontFamily attribute. I hoped the docs would say
"This is depcrecated in API level 15. For API level 15 and lower, see [........]"
but they don't. How do I set the font in XML (or programmatically) without generating this warning?
This is a screenshot from Android Studio on Ubuntu.
styles.xml:
http://developer.android.com/reference/android/widget/TextView.html
You are wrong what you are seeing is the class API
not the attribute
API level:
You can look here and said:
public static final int fontFamily
Added in API level 16
Font families are actually create since android 4.1 not in 4.0.3-4.0.4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With