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

Android: Add animate parameter for disableTabNavigation

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Sprint:
      2020 Sprint 10

      Description

      Currently it is only possible to hide/show the BottomNavigationBar. It is not possible to animate it.

      var win1 = Ti.UI.createWindow({backgroundColor: '#fff'});
      win1.add(Ti.UI.createLabel({touchEnabled:false, text: 'Click to hide - animated'}));
       
      var isOpen = true;
       
      win1.addEventListener("click",function(){
      	isOpen = !isOpen;
      	tabGroup.disableTabNavigation(!isOpen, true); // animate navbar
      })
       
      var win2 = Ti.UI.createWindow({backgroundColor: '#fff'});
      win2.add(Ti.UI.createLabel({touchEnabled:false,text: 'Click to hide'}));
      win2.addEventListener("click",function(){
      	isOpen = !isOpen;
      	tabGroup.disableTabNavigation(!isOpen); // old behavior
      })
      var tab1 = Ti.UI.createTab({
          window: win1,
          title: 'Blue'
      }),
      tab2 = Ti.UI.createTab({
          window: win2,
          title: 'Red'
      }),
      tabGroup = Ti.UI.createTabGroup({
      	style: Ti.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION,
          tabs: [tab1, tab2]
      });
      tabGroup.open();
      

      A second optional parameter is used to animate it

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              michael Michael Gangolf
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration