Questions tagged [shared-element-transition]

A shared elements transition determines how views that are shared between two activities transition between these activities.

A shared elements transition determines how views that are shared between two activities transition between these activities.

https://developer.android.com/training/material/animations.html

435 questions
4
votes
1 answer

Changing reenter animation to another item of a list

I have a RecyclerView with images and when I press an image the app opens another activity that contains a ViewPager with the same images but in the position of the one I selected. I've done the transition in Lollipop to share this image between…
4
votes
1 answer

Shared Element Transition Glitch in Android Lollipop

I'm trying to do an Android 5.0 shared element transition in a Master Detail situation from a ListView. I'm sending an Image. I've run into a glitch on the enter transition where the Image doesn't move at all while the Master activity transitions…
3
votes
2 answers

how to use fragments backstack with shared element transition

shared element transition replace the fragment, so I can't add it to the backstack and call popbackstack when the back arrow button is pressed. I have a main activity with inside a mainfragment, the main fragment handle a table layout so each tab is…
3
votes
1 answer

android shared element transition start transition has delay

I'm using the shared element transition with a recyclerview, as you can see in this gif: there is a delay starting the shared element transition, It's not about the animation's speed, it's like a loading delay at the start, if you notice, there is…
3
votes
1 answer

How to do shared element transitions in React Native Web?

I'm using react-native-web to develop a web&mobile application. I've reached the point when I'd like to introduce better transitions between the screens, and for that reason I'd like to do shared element transitions like the one below: Because I…
3
votes
1 answer

Required Transition found: MaterialContainerTransform?

In my activity, I'm trying to use MaterialContainerTransform but it shows an error that Required Transition found: MaterialContainerTransform override fun onCreate(savedInstanceState: Bundle?)…
3
votes
2 answers

Shared element update image source

I am using androidx navigation component. In FragmentA, I have a recycler view with cards. These cards contain an image an a like button. When the users likes the content, the like button asset changes. This card content is a separate layout which…
3
votes
0 answers

setEnterSharedElementCallback is not working after onPause on Android 10 only

The method setEnterSharedElementCallback is not working on android 10 after onPause (start new activity, home press), if onPause is not call, everything is work fine. I tested on S10 and Google pixel 2, pixel 4. Below android 10, all device work…
RedT
  • 31
  • 1
  • 2
3
votes
1 answer

NavigationComponent recyclerview return shared element transition

I use Navigation Component in project. Trying to set up shared element transitions from recycler. And enter transition in the second fragment works fine, but when I return to the first fragment - there is no return transition. I tried to explicitly…
3
votes
1 answer

Shared element transition imageview turns white

I'm using a RecyclerView to ViewPager shared element transition. The problem is that when the viewpager is paged to another image, after returning to the recyclerview, the imageview which first was animated is white. Starting…
Amir
  • 1,628
  • 20
  • 28
3
votes
1 answer

Shared view transitions with Navigation component not working

I've follow the docs to implement shared view transitions with the new Navigation component and it is not working. This is what I have: Fragment A has this code to call fragment B val extras = FragmentNavigatorExtras( taskNameInput…
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…
3
votes
0 answers

Shared Elements Transition is Different in Activity vs Fragment

I wrote a gallery app called Pholder. It has a typical behaviour that when you click on a thumbnail in GalleryActivity, it will show up enlarged in SlideshowActivity, using ChangeBounds, ChangeImageTransform and ChangeClipBounds. Gif here. This is…
3
votes
1 answer

react-navigation-fluid-transitions shared image flickers

I'm learning how to make beautiful animations with react native, and I have problems using the react-native-fluid-transitions library. When I use shared elements with images, they flicker during transitions and only appear at the end of transition,…
3
votes
0 answers

How to implement Shared Element Transition from fragment to another activity

I have the requirement of 2 activities in which 1 activity is having fragments. I want the zoom like animation (Shared element Transition) to be start from the fragment in Activity1 and end at Activity2. Here is the code: Activity 1:…