I want to change the app typeface and I can’t:
AndroidManifest.xml
...
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/CustomTheme"
>
...
style.xml
....
<style name="CustomTheme">
<item name="android:typeface">stheiti.ttf</item>
</style>
....
But I get an error:
error: Error: String types not allowed (at ‘android:typeface’ with
value ‘stheiti.ttf’).
But I have a rootAPP/assets/stheiti.ttf
I do not understand why get that error, I searched in many sites the solution but i couldn’t found any with same problem
Thanks in advance! :=)
you can set custom font in text view like
If you want to implement custom font in whole application then you can create your custom view and set your font at the initialize of that view.