Relative Content

Tag Archive for androidandroid-jetpack-composeshared-element-transition

Problem when using SharedElementTransition with HorizontalPager in jetpack compose

I have a first screen with a list of images, and when I click on any image, it moves to another screen with HorizontalPager that displays all the images, and HorizontalPager is ready to start from the index of the image that was clicked (initialPage) and SharedElement is applied to this image. Now, if I change the image that SharedElement was applied to in the second screen (HorizontalPager Screen) by swiping left or right, SharedElement will not appear when I return to the first screen (which contains the list of images), but SharedElement will be applied to the image that was clicked on the first page. I want to apply SharedElemnt even if I change the image in the second screen (HorizontalPager). I hope that I was able to describe the problem correctly 😅 Is there a solution to this problem?

Cannot find “SharedTransitionScope” in the release mode (android)

I am using “Shared Element Transitions in Compose” and it works fine in debug mode. But when I change it to the release mode, there is an error that it couldn’t find the “SharedTransitionScope”. Has anyone experienced a similar error? I want to know how to solve it.