Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27831] Android: Implement TabGroup.tintColor

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2020-06-09T14:58:20.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.3
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2020-04-02T21:47:20.000+0000
Updated2020-06-09T14:58:20.000+0000

Description

Implement ability to specify a tintColor or activeTintColor for tab icons. *TEST CASE*
const tabGroup = Ti.UI.createTabGroup({
	// style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION
});

const tabWin_home = Ti.UI.createWindow({
   	title: 'Home',
   	backgroundColor: 'white'
});
const tab_home = Ti.UI.createTab({
   	icon: 'home.png',
   	title: 'Home',
   	titleColor: 'red',
   	activeTitleColor: 'blue',
   	tintColor: 'red',
   	activeTintColor: 'blue',
   	window: tabWin_home
});

const tabWin_chat = Ti.UI.createWindow({
	title: 'Chat',
	backgroundColor: 'white'
});
const tab_chat = Ti.UI.createTab({
	icon: 'chat.png',
	title: 'Chat',
	titleColor: 'red',
	activeTitleColor: 'blue',
	tintColor: 'red',
	activeTintColor: 'blue',
	window: tabWin_chat
});

tabGroup.addTab(tab_home);
tabGroup.addTab(tab_chat);
tabGroup.open();

Comments

  1. Gary Mathews 2020-04-02

    master: https://github.com/appcelerator/titanium_mobile/pull/11590
  2. Samir Mohammed 2020-06-08

    FR Passed for master 9_0_X. Waiting on Jenkins build.
  3. Christopher Williams 2020-06-08

    merged to 9_0_X for 9.0.3 target
  4. Christopher Williams 2020-06-08

    manually merged/rebased to master for 9.1.0 target
  5. Samir Mohammed 2020-06-09

    Closing ticket, Fix verified SDK version 9.0.3.v20200609060523 and SDK version 9.1.0.v20200609061322 Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/11590

JSON Source