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

Android: TabGroup "tabsBackgroundSelectedColor" property is ignored

    Details

    • Story Points:
      8
    • Sprint:
      2019 Sprint 1

      Description

      Summary:
      Titanium documents that Android (and Windows) TabGroup supports a 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:

      1. Build and run the below code on Android.
      2. 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:

      Expected Result:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                jquick Joshua Quick
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6816
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code