Android: TabGroup icon tint color resets when changing the icon
m1ga opened this issue · 0 comments
m1ga commented
I have searched and made sure there are no existing issues for the issue I am filing
- I have searched the existing issues
Description
When changing the icon of a tab it will reset the tintcolor.
workaround:
running tabGroup.activeTab = 0;
will set the tintColor again.
Expected Behavior
keep the tintColor
Actual behavior
original color is shown
Reproducible sample
var tabs = [];
function createTab(title, icon) {
const window = Ti.UI.createWindow({ title: title });
window.add(Ti.UI.createLabel({ text: title + " View" }));
const tab = Ti.UI.createTab({
title: title,
icon: icon,
window: window,
});
tabs.push(tab);
return tab;
}
const tabGroup = Ti.UI.createTabGroup({
tabs: [
createTab("Tab 1", "/images/appicon.png"),
createTab("Tab 2", "/images/appicon.png"),
createTab("Tab 3", "/images/appicon.png")
],
activeTintColor: "red",
activeTitleColor: "red",
tintColor: "purple",
titleColor: "purple",
tabsBackgroundColor: "#F7F7F7",
});
setTimeout(function(){
tabs[0].icon = "/images/appicon.png"
tabGroup.activeTintColor = "red"
// tabGroup.activeTab = 0; // without that it will be blue
},1000)
tabGroup.open();
Steps to reproduce
run the code, wait 1 second
Platform
Android
SDK version you are using
12.4.0
Alloy version you are using
No response