B
B
BitNeBolt2020-08-16 18:20:57
Android
BitNeBolt, 2020-08-16 18:20:57

How to correctly make the animation of opening a new activity with a general picture from RecylerView?

I need to make a transition animation from a card in a RecyclerView to a new activity. The card and activity have a common element - a picture. How to make the animation with the common element correctly so that the image does not overlap the toolbar and the bottom navigation bar?

I want to do the following:
1) move the list to the desired position so that the image becomes fully visible ( smoothScrollToPosition ).
2) start the activity.

My problem is that I can't find a callback (or how is it in Russian) to find out when the list item will be shown on the screen and the list will stop scrolling?

None of the methods given here: https://stackoverflow.com/questions/44483981/andro... seem to work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question