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

Android: Enable activity*Transition without sharedElements

    Details

    • Type: Improvement
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 5.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None

      Description

      With TIMOB-19580 we have implemented Activity & Shared Element Transitions.

      However, as Srikanth Sombhatla points our here the activity*Transition only works if there are sharedElements.

      It looks like we could make activity*Transition work without sharedElements as well.

      We would need to change our code here to:

       
      if (LOLLIPOP_OR_GREATER) {
          if (!sharedElementPairs.isEmpty()) {
              return ActivityOptions.makeSceneTransitionAnimation(activity, 
                     sharedElementPairs.toArray(new Pair[sharedElementPairs.size()])).toBundle();
          } else {
              return ActivityOptions.makeSceneTransitionAnimation(activity).toBundle();
          }
      } else {
          return null;
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                10 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 Source Code