[TIMOB-26714] Android: TabGroup "tabsBackgroundSelectedColor" property is ignored
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-01-11T01:04:19.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 8.0.0 |
Components | Android |
Labels | TabGroup, android, color, qe-testadded, tab |
Reporter | Joshua Quick |
Assignee | Yordan Banev |
Created | 2019-01-11T01:03:15.000+0000 |
Updated | 2019-04-05T22:27:59.000+0000 |
Description
*Summary:*
Titanium documents that Android (and Windows)
TabGroup
supports a [tabsBackgroundSelectedColor](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TabGroup-property-tabsBackgroundSelectedColor) property which sets the background color of the currently selected tab. This property is ignored on Titanium 6.0.0 and newer versions. (It might have stopped working before 6.0.0; have not confirmed.)
*Steps to reproduce:*
Build and run the below code on Android.
Notice that the selected tab's background color is not red.
function createTab(title) {
var window = Ti.UI.createWindow({ title: title });
window.add(Ti.UI.createLabel({ text: title + " View" }));
var tab = Ti.UI.createTab({
title: title,
window: window,
});
return tab;
}
var tabGroup = Ti.UI.createTabGroup({
tabs: [createTab("Tab 1"), createTab("Tab 2")],
tabsBackgroundSelectedColor: "red",
});
tabGroup.open();
*Result:*
!TabGroup-bad.png|thumbnail!
*Expected Result:*
!TabGroup-good.png|thumbnail!
Attachments
File | Date | Size |
---|---|---|
TabGroup-bad.png | 2019-01-11T01:03:00.000+0000 | 47779 |
TabGroup-good.png | 2019-01-11T01:03:00.000+0000 | 49669 |
This issue was resolved in Titanium 8.0.0 by [TIMOB-26354].