Search code examples
androidandroid-layoutandroid-recyclerviewandroid-imageview

Grow picture from recyclerview into new activity


I have an activity with a recyclerview in it which is populated with images. If an item on the recyclerview is pressed I need that image to grow to the full size of the screen and then change the toolbar and be in a new activity with its screen a full size image of the clicked item. I then also need a new toolbar.

Any ideas on how to go about this?


Solution

  • Check shared transitions, this might be what you want.

    https://guides.codepath.com/android/Shared-Element-Activity-Transition

    enter image description here