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
5
votes
0 answers

Shared element enter transition not working, but return transition works fine (Fragment transitions)

I will start off with a gif showing what is happening. The list item is supposed to animate up to be the header item. As you can see, the header item animates back down to become the list item when the back button is pressed. There is another…
5
votes
0 answers

onEnterAnimationComplete() not called API 21

I am using shared element transition between activities and on devices with API 21 the method onEnterAnimationComplete() is not called. Is says here that it was introduced in api 21. Note that the method get called for Android version6 and 7. The…
Dalma Racz
  • 149
  • 1
  • 7
5
votes
2 answers

Shared element when using startActivityForResult

I have an app with two activities, where the second functions as an image "picker" and delivers some information to the first, so that an ImageView can be updated accordingly. For this, I'm calling the second activity through…
5
votes
0 answers

Fragment Shared Element Transitions FragmentManager with add() not working

When I tried to use transitions with fragments using similar code from this article on Medium GitHub. It wouldn't work when I am using the add method() on fragment manager but it would work with replace(). FragmentManager fragmentManager =…
5
votes
2 answers

how to apply shared element animation in ViewPager fragments?

I want to animate a view with SharedElement transition from one Fragment to another fragment in ViewPager. I've 3 fragments in a ViewPager, each fragment is having a single TextView with same transition name in XML file. Now, when ViewPager slides…
5
votes
0 answers

Shared Element transition bug from TextView to EditText

I am trying to do an Android Shared Transtion between a TextView and a EditText´ but when showing the resulting Activity the text in theEditViewhave been shifted up. See attached pictures. Also, clicking on theEditView` after the transition will…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
5
votes
0 answers

Animate text color in Android Lollipop transition

We're trying to make a transition to move a TextView of one Activity to another TextView of another Activity. The common awesome Android Lollipop transition, to animate shared views. In our scenario, the first TextView is white, and the second one…
5
votes
0 answers

Lollipop shared element transition on reentering activity with keyboard resize

I'm working with Lollipop transitions between two activities. I have a shared element which I animate with a transition to and from activities A and B. In activity B a keyboard pops up and resizes the window. The animation looks great when going…
5
votes
2 answers

Webview glitches in shared element transition on lollipop

I've just started to rebuild my app for Android 5.0, using the appcompat support library. I've just finished implementing a transition featuring shared elements. It seems to work well, untill I add a webview. I've made a video to demonstrate the…
5
votes
0 answers

Multiple view Activity Transition

Android Lolipop has an api that allows for easy transitions between shared elements in different activities. Activity transitions It looks like this api doesn't support a transition with multiple views. Is there a way to do this using the same…
jiduvah
  • 5,108
  • 6
  • 39
  • 55
4
votes
2 answers

Shared element transition to a fragment that contains a ViewPager

I am trying to perform a shared element transition from a RecyclerView item in Fragment A to Fragment B. The transition-names are set on the outermost CardViews in both layouts. My implementation is basically the same as the one in this…
4
votes
0 answers

Fragment shared element transitions z order broken with AppBarLayout

I have the following layout files: fragment_a.xml
gookman
  • 2,527
  • 2
  • 20
  • 28
4
votes
1 answer

Android clears Activity to Activity shared element transition exit animation after pressing power button

I'm working on implementing a basic Activity transition animation with a shared element from a RecyclerView with a GridLayoutManager to a full screen details Activity screen. The animation works well under regular circumstances. So when clicking on…
4
votes
3 answers

Shared Element Transition not working in android 10(Q) while returning to calledActivity

Got this in only android-10(Q) and works fine in android pie and below api levels. I was trying to work with sharedElement transition. From a recyclerView item to new activity. It works fine when i work with two activities that is., From Activity A…
4
votes
1 answer

How to start shared element transition between 2 activity?

I just learn about Shared Element in Android and I have one image which one of them in ActivitySplashScreen and one other is into Toolbar and I want to use shared element to move this image from ActivitySplashScreen to ActivityMain after some search…
DolDurma
  • 15,753
  • 51
  • 198
  • 377