Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28220

Android: tintColor/activeTintColor or titleColor/activeTitleColor not respected for tabgroup with style TABS_STYLE_BOTTOM_NAVIGATION

    Details

    • 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

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Joshua Quick
              Tester:
              Lokesh Choudhary
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration