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

Android: Window transitions are not enabled unless a shared element exists

    Details

    • Type: Bug
    • Status: In Review
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 7.0.0
    • Fix Version/s: Release 7.5.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      2018 Sprint 01 SDK, 2018 Sprint 02 SDK, 2018 Sprint 03 SDK, 2018 Sprint 13 SDK, 2018 Sprint 14 SDK, 2018 Sprint 15 SDK, 2018 Sprint 16 SDK, 2016 Sprint 17 SDK

      Description

      • hasActivityTransitions incorrectly requires at least one sharedElement to be defined in order to return true

      var win = Ti.UI.createWindow({
              backgroundColor: 'blue',
              layout: 'vertical'
          }),
          lbl = Ti.UI.createLabel({
              left: 5,
              text: 'TEST LABEL',
              transitionName: 'lbl'
          }),
          btn = Ti.UI.createButton({
              title: 'OPEN'
          });
       
      btn.addEventListener('click', function () {
          var win2 = Ti.UI.createWindow({
                  backgroundColor: 'red',
                  layout: 'vertical',
                  activityEnterTransition: Titanium.UI.Android.TRANSITION_SLIDE_RIGHT
              }),
              lbl2 = Ti.UI.createLabel({
                  right: 5,
                  text: 'TEST LABEL',
                  transitionName: 'lbl'
              }),
              btn2 = Ti.UI.createButton({
                  title: 'CLOSE'
              });
       
          btn2.addEventListener('click', function () {
              win2.close();
          });
       
          win2.add([lbl2, btn2]);
          // win2.addSharedElement(lbl, 'lbl'); // should NOT need to uncomment this to see transition
       
          win2.open();
      });
       
      win.add([lbl, btn]);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gmathews Gary Mathews
              Reviewer:
              Joshua Quick
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code