Screen Transition Animations with Jetpack Navigation

<p>I&rsquo;ve recently delved into how to add support for navigation in Android using Jetpack Compose. To do so, I created a small app that consumes an API and has a Main -&gt; Detail screen. In this post, we&rsquo;ll go through the basic setup of the project, its key elements to handle navigation, and finally, we&rsquo;ll add some transitions to it using the latest navigation library. Let&rsquo;s go through it together.</p> <h1>Mechanics Overview</h1> <p>The app itself is fairly basic and it uses a simple yet clean architecture (I might write a separate post on this at some point). It&rsquo;s a top-rated movies list that you can scroll through, and if you click on any of the posters, it takes you to a detailed view, which is just the poster expanded to use the whole screen.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:1080/1*R-dcZ0wYBvrtxTPaOYuoiQ.png" style="height:2340px; width:500px" /></p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:1080/1*F7_5OOjQB5mGwtPQPe0jWw.png" style="height:2340px; width:500px" /></p> <p>The Movies List and the Movie Detail views</p> <p>I&rsquo;m using the&nbsp;<a href="https://developer.themoviedb.org/reference/intro/getting-started" rel="noopener ugc nofollow" target="_blank">TMDB API</a>&nbsp;to retrieve the movie list and regardless is a pagination-friendly api, I&rsquo;m not paginating the results for this sample. As usual to do so I&rsquo;m using&nbsp;<a href="https://square.github.io/retrofit/" rel="noopener ugc nofollow" target="_blank">Retrofit</a>.</p> <p><a href="https://proandroiddev.com/screen-transition-animations-with-jetpack-navigation-17afdc714d0e"><strong>Learn More</strong></a></p>