Questions tagged [sharedelementcallback]
10 questions
28
votes
2 answers
ViewPager Fragments – Shared Element Transitions
An app I'm developing displays a grid of images. When you tap an image, it goes into the details view. The details view contains a ViewPager that allows you swipe between every image in the grid. This is done by passing a lists of paths (containing…

afollestad
- 2,929
- 5
- 30
- 44
11
votes
0 answers
How to use shared element snapshot views during an Activity transition?
I am confused about the List sharedElementSnapshots argument that is passed to the SharedElementCallback's onSharedElementStart() and onSharedElementEnd() methods. Presumably these snapshot views are meant to be used as temporary placeholders…

Alex Lockwood
- 83,063
- 39
- 206
- 250
3
votes
3 answers
Slide image with recyclerview in full screen android
I have created a wallpaper app where I'm loading images from the firebase database in recyclerview. When I click on recyclerview item(image) that item's image URL is sent to the next activity and then that URL is loaded into imageView using glide.
I…

Marsad
- 859
- 1
- 14
- 35
3
votes
1 answer
Memory leak in activity enter transition coordinator after shared element transition
I'm having a problem with memory leak in EnterTransitionCoordinator while using shared element transitions. Below you can see the app structure:
It has 2 screens, first is an Activity with DrawerLayout and few Fragments inside. One of them consists…

Grzegorz Matyszczak
- 712
- 5
- 9
1
vote
1 answer
Shared element end listener
I use addSharedElement() with fragments, and I want to know if there are possibilities to add a listener to execute some methods after the end of this transition.
Thanks for the help.

Ruslan Leshchenko
- 4,043
- 4
- 24
- 36
0
votes
0 answers
MaterialMotion from a ViewPager with starting Fragment - is there a a way to handle return transition in starting Fragment?
I am struggling with returning transition while using MaterialMotion. Here is the logic I am trying to implement -
I have FirstFragment with ViewPager where one of the pages (StartTransitionFragment) contains a recycler with items. When item in the…

Arkados
- 1
- 1
0
votes
1 answer
Adding listener for shared element callback not changing view visibility
I am using shared element transition between two activities. The second activity is comprised of view pager containing fragments. I want to make further changes when shared element transition ends. This is the…

Junaid Khan
- 315
- 5
- 16
0
votes
0 answers
Can SharedElementTransition be made interactive?
I've used SharedElementTransition in my app but I want to perform the same animation with interactive touch as well.
In iOS they have this option but I couldn't find similar solution in Android. If I write custom animation by overriding onTouch…

Usman Rana
- 2,067
- 1
- 21
- 32
0
votes
1 answer
OutOfMemoryError in SharedTransitionElement Animation
I'm using sharedElementTransition in my app and i've used a custom class for sharedElementCallback to update the views at run time. It was causing OutOfMemory errors at sometimes, so i searched about it and from this solution i used code of…

Usman Rana
- 2,067
- 1
- 21
- 32
0
votes
1 answer
How to do SharedElement Transition with Viewpager between Fragments
I have researched a lot on SharedElement Transitions , however I could only find Transitions for onclick event.
I want the animation between Fragments where the speed of animation is controlled by the user's scrolling speed. If the user stops in…

Karan Sharma
- 2,353
- 4
- 28
- 46