Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 9.1.0
-
Fix Version/s: Release 9.3.0
-
Component/s: Android
-
Labels:
-
Story Points:3
-
Sprint:2020 Sprint 22, 2020 Sprint 23
Description
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