Open manishgithub1173 opened 8 years ago
You need to set the currentItem of the ViewPager to the appropriate int. You also need to postponeentertransition until the image in fragment B has finished loading.
I am facing one more issue. have list of items with image in grid recycler view. There is UI glitch at the start of the transition in fragment A, if the partially visible image (either at top of screen and end of screen) is clicked.
At the top screen, if there is toolbar and image is partially visible then when transition starts, the image appears over the toolbar first and then it start moving. If you see play store app, there has been some hack put in to handle this case, may be they are hiding toolbar when transition starts.
Similarly, at the bottom of screen , we have navigation bar. If the image is partially visible at bottom, the image comes over the navigation bar and then transition starts. In google music also, there is some issue at the when pressed back and transition exit.
Can you provide any solution to handle these two cases. ?
I got some solution from the link -> https://plus.google.com/+AlexLockwood/posts/RPtwZ5nNebb I am looking into it. Thanks for your reply.
I have activity A with fragment A and activity B with fragment B. Fragment A has recyclerview with list of images and fragment B has view pager of slideshow images. On Click of the image in recyclerview in fragment A, the image should use "Shared Element Transition" to move to the view pager of fragment B in activity B.
Is this possible with Shared Element transition ?