I want to change the whole font of my app from native Roboto do something else. im Using a android 7 and 8 device
i found this Tutorial
www.b4x.com
i needed to change CustomFontStyle to custom_font otherwise i was getting the error:
res\values\theme.xml:8: error: resource font/CustomFontStyle (aka de.dinotec.netplus:font/CustomFontStyle) not found.
With this it compiles without an error message, but the Font is still the same, even after resinstalling and project cleaning.
What im doing wrong? what is "Support Library 26"?
i found this Tutorial
Setting custom font for whole application without any library
Hi everyone, After a week I have finally figured it out how to add a custom font for the whole application without any library or extra code. Here is the solution: Create a folder resource inside your project folder. Create a new folder font inside the resource folder and copy your font...

res\values\theme.xml:8: error: resource font/CustomFontStyle (aka de.dinotec.netplus:font/CustomFontStyle) not found.
With this it compiles without an error message, but the Font is still the same, even after resinstalling and project cleaning.
What im doing wrong? what is "Support Library 26"?
B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">#0098FF</item>
<item name="colorPrimaryDark">#007CF5</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:fontFamily">@font/custom_font</item>
<item name="fontFamily">@font/custom_font</item>
</style>
</resources>
)
CreateResource(font, custom_font.xml,
<font-family xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<font android:fontStyle="normal" android:fontWeight="400" android:font="@font/mulish"/>
<font android:fontStyle="italic" android:fontWeight="400" android:font="@font/mulish" />
<font app:fontStyle="normal" app:fontWeight="400" app:font="@font/mulish"/>
<font app:fontStyle="italic" app:fontWeight="400" app:font="@font/mulish" />
</font-family>
)
Last edited: