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
20
votes
1 answer

Animation between Activities and shared views: glitchy/hack at the ends of animation?

So, the problem I am facing is that the animation I do between two Activities and two shared views is not looking great. The problem is that its "glitchy", when going from Activity2 back to Activity1, the TextViews being shared sort of blinks at the…
20
votes
1 answer

Shared elements animating between fragments

I'm trying to animate 2 simple Views from a selected item in a RecyclerView to a new fragment. I've looked at a lot of examples of animating shared elements from one Activity to another Activity, but very few examples of animating a shared element…
18
votes
4 answers

Shared Element Transition on CardView with radius

I've been working on this problem for weeks and I'm still unable to solve this problem. So, I have a CardView that contains a LinearLayout with an ImageView. Without that radius Shared Element Transition works seamlessly. However, when I add…
18
votes
1 answer

Shared element transition with Dialog Activity

I put together a very simple app that uses shared element transitions when starting an activity with Dialog theme (source code on github). I got the following result: As you can see there are 2 problems with the transition/animation: The animation…
Longi
  • 3,913
  • 2
  • 28
  • 38
17
votes
5 answers

How to implement shared transition element from RecyclerView item to Fragment with Android Navigation Component?

I have a pretty straightforward case. I want to implement shared element transition between an item in recyclerView and fragment. I'm using android navigation component in my app. There is an article about shared transition on developer.android and…
17
votes
2 answers

How to postpone a Fragment's enter transition in Android Lollipop?

In Android Lollipop, the Activity#postponeEnterTransition() and Activity#startPostponedEnterTransition() methods give the Activity the ability to delay starting the entering and exiting shared element transitions until all data is loaded. These work…
17
votes
2 answers

Animate ImageView between two activities using shared element transitions with ChangeImageTransform

I am trying to animate one ImageView to another position between two activities in Android API level 21. Since "MoveImage" in Android L Preview has been removed, I use "ChangeImageTransform" instead, but the sample code in documents doesn't work out…
16
votes
6 answers

Android - Recyclerview shared element transition item position

I hope you could help me with this issue. I have two fragments, the first one is a recyclerview with several images, the second fragment is the details view of this images. If user clicks on an image the app does a fragment transaction and the…
15
votes
2 answers

Multiple Shared Elements

I have the following situation inside of a soccer application. We want to implement the shared elements between all these activities. In my viewholder on the first Activity for the match I have set a android:transitionName which corresponds to the…
timr
  • 6,668
  • 7
  • 47
  • 79
15
votes
2 answers

Understanding exit/reenter shared element transitions

I'm doing some rudimentary exploration of Shared Element Transitions in Android L. The simple example I've setup has an image view translating from the top of the screen to the bottom of the screen during activity transitions and I've extended the…
14
votes
3 answers

TextInputLayout shared element transition issue

Here we go: two Activities with a shared element transition (Button). The second Activity has a TextInputLayout with a hint:
artkoenig
  • 7,117
  • 2
  • 40
  • 61
14
votes
4 answers

Shared Element with scaleType centerCrop transition is jumpy

I'm trying to implement a shared elements transition when 2 ImageViews from one screen go to the next screen. one of the images has a scaleType of centerCrop on both screen. The problem I'm facing is that when the transition starts the image is…
13
votes
3 answers

Android shared element transition: hero view gets drawn in front of other

Please look at this video showing a shared elements activity transition. It's a transition from a list activity to a detail activity. [Video link no longer works] As you can see the imageview gets drawn in front of the tabs. What I would expect is…
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
13
votes
2 answers

Shared element transitions not working when combined with a CoordinatorLayout and CollapsingToolbarLayout

My application main screen contains a grid view of images. When the user selects an image, a detail activity is started using a shared element transition that animates the selected grid image to a paired image located in a CardView in the detail…
13
votes
5 answers

Reverse shared element transition on back

I am currently using the following code to transition a block on the right side of the screen to a shared element on the left: FragmentDetail newFragment = FragmentDetail.newInstance(id); …
Josh
  • 2,685
  • 6
  • 33
  • 47
1
2
3
28 29