Description
When setting the
tintColor/activeTintColor
or
titleColor/activeTitleColor
properties they are no longer respected as of 9.1.0.GA when the style is set to
TABS_STYLE_BOTTOM_NAVIGATION
and the icons are no longer coloured.
Note: The
titleColor/activeTitleColor
properties do color the title in 9.1.0.GA, whereas in 9.0.3.GA they color both the icon and the title. This might be expected behaviour
const tabGroup = Ti.UI.createTabGroup({
style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION,
tintColor: 'red',
activeTintColor: 'blue'
});
const tabWin_home = Ti.UI.createWindow({
title: 'Home',
backgroundColor: 'white'
});
const tab_home = Ti.UI.createTab({
icon: 'assets/images/tab1.png',
title: 'Home',
window: tabWin_home,
tintColor: 'red',
activeTintColor: 'blue'
});
const tabWin_chat = Ti.UI.createWindow({
title: 'Chat',
backgroundColor: 'white'
});
const tab_chat = Ti.UI.createTab({
icon: 'assets/images/tab2.png',
title: 'Chat',
window: tabWin_chat,
tintColor: 'red',
activeTintColor: 'blue',
});
tabGroup.addTab(tab_home);
tabGroup.addTab(tab_chat);
tabGroup.open();
Steps to reproduce
1. Add the code above to an existing classic project (it references images from the default template)
2. Build to Android using 9.1.0.GA or higher
Actual
No color set on the icons
Expected
Icons should be blue when tab is active and red when tab is inactive
master: https://github.com/appcelerator/titanium_mobile/pull/12242
merged to master for 9.3.0 target.
*Closing ticket*. Fix verified in SDK version
9.3.0.v20201119063936
. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/12242