Android Shared Element Transitions

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

Here you find examples for transition between Activities or Fragments using a shared element. An example for this behaviour is the Google Play Store App which translates an App's icon from the list to the App's details view.

Syntax

  • transaction.addSharedElement(sharedElementView, "targetTransitionName");
  • fragment.setSharedElementEnterTransition(new CustomTransaction());


Got any Android Question?