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

Hiccups in activity transitions with shared elements

I want to use the new Activity Transitions of Android Lollipop. But currently I am seeing very weird hickups during the animations. I hacked together the smallest sample I could think of. This is what I did in a very short version: Enabled window…
6
votes
2 answers

MaterialContainerTransform transition is not Working on Return

My MaterialContainerTransform transition is working from source -> destination, but not the other way around. My situation is pretty standard -- I am attempting to provide a simple transition from a RecyclerView item (source Fragment) to a "details"…
6
votes
0 answers

My SharedElement transition blinks the first time I click on the shared element

So here's the problem: I have a Main Activity and within it lies a fragment that contains a RecyclerView, the shared element is in the viewholder of the RecyclerView. When you click this shared element, it starts a new activity with a shared element…
ConfusedCoder
  • 337
  • 2
  • 3
  • 12
6
votes
2 answers

sharedElment transition using fragments not transitioning

AndroidStudio 2.3 Beta 1 I am trying to get transitions work with fragments, how the image I am using doesn't transition. It just pop up as normal. I have created a simple App to try and get this to work. I have 2 fragments ListMovieFragment and…
6
votes
0 answers

Define shared element motion in Activity transition

I would like to define a transition between two Activity. My goal is to share an image and two text between the Activities, but I want to define arc motion for the texts (and keep the changeBounds for the image). I set the styles up with the…
6
votes
1 answer

Deal with not working animations when activity is SingleInstance

I am developing an android app and I have used android:launchMode="singleInstance" for it,but as I activated it none of TransitionAnimation works and it makes my activity like this In fact my main activity is singleinstane and when I want to lunch…
Majid Hojati
  • 1,740
  • 4
  • 29
  • 61
6
votes
1 answer

How to make SharedElement to works in viewPager fragment inside a fragment

My case is I'm having only 1 activity. Firstly, it displays fragment1, inside that fragment, i have a recyclerView to display a list of cardviews, inside each CardView, there is an image. When user tap on each CardView, fragment1 will be replaced by…
6
votes
1 answer

Using shared elements transition between activities with different orientations

I have an Activity A which is permanently set in landscape orientation and an Activity B without any predefined orientation. If I start activity B from activity A and phone rotation is in a landscape angle, shared element transition works properly…
6
votes
1 answer

Android shared elements transition pre-21

How can I implement shared elements transitions in pre-21 devices? I've more or less followed the guide here http://antonioleiva.com/material-design-everywhere/ but I get errors like "attribute transitionName only used in api level 21 or higher"
5
votes
1 answer

Android - Shared element transition between different scaleType of ImageView not animating properly (using Glide)

Note that this question is very similar to the question found here. There was no resolution, so I thought I'd provide some of my code and ask again. Essentially, I am attempting to do a shared element transition of an ImageView between two…
5
votes
2 answers

Shared Element Transition is broken between three or more activities

Problem I want to achieve shared element transition between Activity A and B, and between Activity B and C. I did everything based on the android transition documentation. There is no problem between: A => B => back to A A => B and B => C => back…
xiaoyu
  • 2,369
  • 2
  • 13
  • 15
5
votes
1 answer

Transition shared element breaks when for Activity called onStop()

I open from ActivityA ActivityB with shared element transition. It's work properly. When I press "Back" button, shared element similarly work properly and I see close animation. But if I press the "Home" button and after that I return to the…
5
votes
2 answers

Shared element transition between fragments of different activities

I am trying to implement shared element transition between fragments of different activites, i have attained shared element enter transition but could not manage return transition on backpressed. Fragment A is hosted in Activity A, on button click…
5
votes
2 answers

IllegalArgumentException in Shared Element Transition

Implemented activity to activity shared element transition. It works fine but receiving crashes on very few devices that are running >=LOLLIPOP. Report: Fatal Exception: java.lang.IllegalArgumentException at…
cgr
  • 4,578
  • 2
  • 28
  • 52
5
votes
1 answer

increase shared element transition speed

I have implemented shared element image transition with recycler view and its working fine. The issue is that i want to increase its image transition speed like google photo app have. Can we do this programmetically ? I'm sharing few lines of…
JosephM
  • 2,935
  • 4
  • 18
  • 28