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>
)