![]() ![]() While specifying multiple shared elements transitions, make sure that you import 4.util.Pair. When we specify the source view along with its corresponding transition name, it ensures that even if multiple views exist in the the source view hierarchy with the same transition name, it picks the correct view to start the animation from. StartActivity(intent, options.toBundle()) MakeSceneTransitionAnimation( this, p1, p2) Pair p2 = Pair.create((View)mObjectNameTV, "object_name") ĪctivityOptionsCompat options = ActivityOptionsCompat. Pair p1 = Pair.create((View)mObjectIV, "object_image")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |