i made a style for tab text appearance and now i'm struggling to reference to a Custom font located in Assets file
after some search i found that in java they have the fonts in the Resources file so they don't have any problem.
but here since we put our fonts in Assets...
direct reference won't work
is there a trick or anyway to solve this ?
i'm a newbie so please go easy on me
<style name="MyCustomTabTextAppearance" parent="TextAppearance.Design.Tab"> <item name="android:textSize">12sp</item> <item name="android:textColor">?android:textColorSecondary</item> <item name="textAllCaps">true</item> <item name="android:fontFamily">@Assets/MyFont.ttf</item> </style>
here is a picture if the code is not showing right