Andorid: Custom fonts in BottomNavigation #13060
Replies: 1 comment 1 reply
-
Please note that you should not derive your app theme from
Your app theme should derive from the following...
Also for Titanium 10.0.0 and higher, I recommend that your derive your app theme from a Titanium material theme since we've worked-around issues in Google's MaterialComponents library. Particularly with their ActionBar handling. I recommend that you derive from (By the way, thanks for showing how to customize a TabGroup via a theme. That's the proper way of doing it.) |
Beta Was this translation helpful? Give feedback.
-
If you want to change the font (e.g. font family) of your Android bottom navigation you can do this with a custom theme.
Basic UI setup
index.xml
index.tss
index.js
Custom theme
Now create a custom theme at
app/platform/android/res/values/mytheme.xml
with:in my example I've place
advent.ttf
insideapp/platform/android/res/font/advent.ttf
.Now you just have to assign your theme e.g. in tiapp.xml
<application android:theme="@style/AppTheme"></application>
and the fonts inside the BottomNavigation look differentBeta Was this translation helpful? Give feedback.
All reactions