-
So, it's been a very long time since I last looked into styling a bottom-style TabGroup on Android, and now I need to know how to do this. I've got a TabGroup set up with 4 tabs, icons are in place, background-colour now takes the primary colour from my theme, but I need the tabs to have a different colour. My relevant tss is this: "#tg[platform=android]": {
theme: "Theme.Titanium.NoTitleBar",
style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION
} But of course I'll need a theme file, which currently is this: <resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColorHint">@color/colorHint</item>
</style>
</resources> Which properties do I need to change/add the following?
|
Beta Was this translation helpful? Give feedback.
Answered by
m1ga
Mar 15, 2021
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Topener
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can style that in tss now:
Tab:
backgroundColor
,activeTintColor
,tintColor
for the tabs or the selected tab/iconTabGroup:
tabsBackgroundColor
,activeTitleColor
,titleColor
for the main background (green) and the title colorsI think there is a ticket about the ripple color