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

Android: Cannot dynamically change TabGroup "title" property as of 8.0.0

    Details

    • Story Points:
      7
    • Sprint:
      2019 Sprint 10

      Description

      At android devices when a Window has its own title in a tabGroup the title never appears.
      In order for the title to appear the focus has to be lost from tabGroup and return.
      If that does not happen, the title appears to be the name of the app or the title of tabGroup if that is set.

      var window1 = Titanium.UI.createWindow({
      	title:'Tab 1'
      });
       
      var window2 = Titanium.UI.createWindow({
      	title:'Tab 2'
      });
       
      var window3 = Titanium.UI.createWindow({
      	title:'Tab 3'
      });
       
      var tab1 = Ti.UI.createTab({
      	title:'Tab 1',
      	window:window1
      });
       
      var tab2 = Ti.UI.createTab({
      	title:'Tab 2',
      	window:window2
      });
       
      var tab3 = Ti.UI.createTab({
      	title:'Tab 3',
      	window:window3
      });
       
      tab1.addEventListener('selected', function() {
      	tabGroup.title = 'Tab 1';
      });
       
      tab2.addEventListener('selected', function() {
      	tabGroup.title = 'Tab 2';
      });
       
      tab3.addEventListener('selected', function() {
      	tabGroup.title = 'Tab 3';
      });
       
      var tabGroup = Titanium.UI.createTabGroup({
      	tabs:[tab1, tab2, tab3],
      	swipeable:true,
      	exitOnClose:false,
      	style:Titanium.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION,
      	shiftMode:false
      });
       
      tabGroup.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              andreas.pingas Andreas Pingas
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code