theapache64 / leancorn

A simple movie app, built using leanback.
Apache License 2.0
44 stars 6 forks source link

Shared element transitions between destinations #2

Open isaranghi opened 2 years ago

isaranghi commented 2 years ago

Hello,

Based on the implementation of Navigation component in the ViewModel and Fragment, how can you implement "shared element transitions between fragments? (example when you click a movie in Home and it takes you to detail)". I am trying to implement "ActivityOptionsCompat.makeSceneTransitionAnimation" using "((ImageCardView) itemViewHolder.view).getMainImageView()" as shared element. I am just wondering how would you suggest doing that based on your implementation of Navigation?