5
我知道如何將自定義字體設置爲TextView。但是如何通過theme/style/xml添加自定義字體?Android:如何將自定義字體添加到theme/style/xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="customfontforlistview" parent="@android:style/Widget.ListView">
<item name="android:textColor">#000000</item>
<item name="android:typeface">HOW_TO_CUSTOM_FONT</item>
</style>
</resources>
請提供了一個解決方案。
這不是一個downvote!正確答案。至少有一種方法如何做到這一點 – longilong 2013-05-22 11:36:59
android:textStyle =「bold」對此繼承的textview無效:( – 2013-09-28 20:20:55