Tag related with Android animation effects between screens or scenes
Questions tagged [android-transitions]
739 questions
15
votes
3 answers
EnterTransitionCoordinator causes NPE in Android 5.0
After adding exit and enter Activity transitions to an app, I am getting crash reports like the following:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke
virtual method 'android.view.ViewParent android.view.View.getParent()'
…

Markus Junginger
- 6,950
- 31
- 52
14
votes
5 answers
Collapsing CardView Animation not working correctly
What I'm trying to do
I have a RecyclerView with many items that are basically some CardView.
Those cards have a supporting text in the middle of their bodies, which has the visibility set to GONE by default, and it's made VISIBLE when I click the…

Mauker
- 11,237
- 7
- 58
- 76
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…

Emil Adz
- 40,709
- 36
- 140
- 187
14
votes
1 answer
How to get notified when a transition between activities have finished?
Just as the title says...
I'm using a transition between activities, and I'd like to have some kind of listener (or event) for both activities, for when the transition has finished and for just before it started.
Here's a sample code of creating the…

android developer
- 114,585
- 152
- 739
- 1,270
14
votes
1 answer
Shared elements and content transitions in Fragments
I have the following problem:
I'm trying to transition from Fragment A to Fragment B. There is a shared element between these fragments in the form of a Button and some other View's (see layout).

Joris
- 1,437
- 1
- 15
- 22
13
votes
1 answer
MotionLayout and ConstraintLayout not animating around children height
While playing with MotionLayouts in a RecyclerView I noticed that the MotionLayouts would not animate the wrapping around their children if these happened to change in height.
A simple way to reproduce that behaviour would be with the following…

krow
- 166
- 1
- 5
13
votes
2 answers
EditText hint visibile while transition
In my app I'm using the Android Activity Slide transition. I followed a nice tutorial and everything works as expected except for the hint of my EditText, which is contained within an InputTextLayout:

dmorawetz
- 497
- 4
- 12
12
votes
2 answers
TransitionSet ArrayList.size() on a null object reference
Started realization for open images with Shared Elements and animation by this guide.
https://android-developers.googleblog.com/2018/02/continuous-shared-element-transitions.html
But catched an exception:
java.lang.NullPointerException: Attempt to…

Merov
- 1,028
- 1
- 14
- 29
12
votes
1 answer
TransitionManager progress manually
I am currenlty exploring a somewhat complex UI similar to the BottomSheetBehaviour used in Google Maps, where one can animate an item from a collapsed state into an expanded state. The transition between those 2 states are Scene Transitions using…

saberrider
- 585
- 3
- 16
12
votes
2 answers
Using SharedElement Activity transitions with a custom View
I am working on a proof-of-concept where I have a few custom views in a TableLayout. When one of the Views is clicked I want to animate the view expanding into a new Activity. The effect I want to achieve is similar to what is seen here.
From my…

RScottCarson
- 980
- 5
- 20
12
votes
1 answer
Share Image element transition display incorrect size
I have a recycle view to show all photo thumbnail items. When click on item, I use transition for imageview in this item to Detail activity. The problem is that image source is gotten from internet by UIL. And sometime (not always) the images not…

ductran
- 10,043
- 19
- 82
- 165
11
votes
1 answer
Navigation component shared element transitions works for enter but not for popping back
I'm trying to use a shared element animation between 2 fragments, BlankFragment and BlankFragment2. BlankFragment has a recycler view and BlankFragment2 is a details screen. They share an image and I'm using the new navigation component.
In…

martinseal1987
- 1,862
- 8
- 44
- 77
11
votes
2 answers
Android MotionLayout Transition Listener not called
I'm trying to make a slide animation.
For it I use a MotionLayout with a MotionScene containing two ConstraintSet.
The slide animation works fine. However I get an error in the LogCat:
E/MotionLayout: WARNING NO app:layoutDescription…

Azartys
- 543
- 6
- 14
11
votes
1 answer
Android Shared element transition - prevent shared element from being drawn
I'm working in a custom Transition to animate only the visible part of the Shared View in case it is partially visible.
In my case this happens because the Shared View is inside a ConstraitLayout, and the ConstraitLayout inside a ScrollView.
I…

Oscar Méndez
- 937
- 2
- 13
- 39