Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26714] Android: TabGroup "tabsBackgroundSelectedColor" property is ignored

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2019-01-11T01:04:19.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 8.0.0
ComponentsAndroid
LabelsTabGroup, android, color, qe-testadded, tab
ReporterJoshua Quick
AssigneeYordan Banev
Created2019-01-11T01:03:15.000+0000
Updated2019-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

FileDateSize
TabGroup-bad.png2019-01-11T01:03:00.000+000047779
TabGroup-good.png2019-01-11T01:03:00.000+000049669

Comments

  1. Joshua Quick 2019-01-11

    This issue was resolved in Titanium 8.0.0 by [TIMOB-26354].

JSON Source