Tag related with Android animation effects between screens or scenes
Questions tagged [android-transitions]
739 questions
198
votes
13 answers
Activity transition in Android
How can I define the transition between two activities for Android 1.5 and later?
I would like an activity to fade in.

hpique
- 119,096
- 131
- 338
- 476
56
votes
3 answers
Fragment shared element transitions don't work with ViewPager
My app contains a view which consists of a ViewPager consisting of a handful of fragments. When you click on an item in one of these fragments, the expected behavior is for the shared element (in this case an image) to transition to the fragment…

JMRboosties
- 15,500
- 20
- 76
- 116
51
votes
2 answers
How to animate floating action button using android activity transition?
I am planning to implement something like this in one of my project but the concept for the following is unclear to me, there's no such tutorial available either, moreover you don't get to see this very often. Here is how it looks like Click here to…

silverFoxA
- 4,549
- 7
- 33
- 73
37
votes
6 answers
How to remove Black background between start new activity during slide_left animation?
When I call new activity by animation the background gets black.
How can I remove remove the black background?
For the animation I'm using:
getWindow().setBackgroundDrawableResource(R.drawable.mainbg_);
overridePendingTransition…

Hardik Gajjar
- 5,038
- 8
- 33
- 51
35
votes
5 answers
Animate layout change of bottom sheet
In my application I use a bottom sheet (from the support library) which works great. Now I would like to animate a layout change while the sheet is dragged up. For this I have created a subclass of BottomSheetCallback (this is normaly an inner class…

Cilenco
- 6,951
- 17
- 72
- 152
32
votes
2 answers
Android Shared Element Transition: Transforming an ImageView from a circle to a rectangle and back again
I'm trying to do a shared element transition between two activities.
The first activity has a circle imageview and the second activity has a rectangular imageview. I just want the circle to transition from the first activity to the second activity…

Simon
- 19,658
- 27
- 149
- 217
32
votes
2 answers
CollapsingToolbarLayout title as a shared element transition
I have a TextView in my activity A. How can I make shared element transition of TextView from activity A and a title of CollapsingToolbarLayout.setTitle() from activity B?
Is there way to obtain its title view id from CollapsingToolbarLayout's…

Augusent
- 589
- 7
- 10
29
votes
1 answer
Shared element transition : activity into fragment nested in another activity
i am trying to add shared element transition into my app.
Scenario is that user clicks on image thumbnail which than opens another activity with full screen image view.
This works fine if shared view is hosted directly within layout of target…

Matin Petrulak
- 1,087
- 15
- 23
28
votes
4 answers
Android - How to create a transition from an item in listview to a whole activity?
What I want is that when the user clicks a list item in a ListView, it converts to a whole activity (as you can see in the following example), but I was not able to find a tutorial explaining this and, actually, I do not know how this movement is…

Antonio
- 11,413
- 6
- 34
- 48
26
votes
4 answers
Make activity animate from top to bottom
I am writing an Android app where I want the activity to appear by animating in from the bottom of the screen to the top. I am able to do this with code from here:
How to translate the activity from top to bottom and viceversa?
However, I am not…

user2903200
- 708
- 2
- 7
- 19
25
votes
3 answers
Scene transition with hero elements throws Layer exceeds max. dimensions supported by the GPU
I am trying to do a hero transition in Android 5.0 between an image in a ListView to a details page. But for about 50% of my images Android crashes with the exception below. My images are 600x400 but I tried changing them to 200x100 but got the same…

Christer Nordvik
- 2,518
- 3
- 35
- 52
23
votes
5 answers
Fragment Transactions with transition - Unique transitionNames are required
I want to go from a list view to the detail view and therefore, I use following OnClickListener in my list:
@Override
public void onClick(View view)
{
Bet bet = (Bet)view.getTag();
FragmentManager fm =…

prom85
- 16,896
- 17
- 122
- 242
21
votes
6 answers
Activity animation slide from bottom
What I use:
activity_stay.xml

oleg.v
- 1,065
- 3
- 11
- 20
21
votes
1 answer
Android lollipop shared elements transition blink / flash
I see strange thing in my shared element transition on Lollipop. Shared elements are flickering just before they are starting to animate (please see video https://www.youtube.com/watch?v=DCoyyC_S-9A)
I've no idea why it is happening. However when I…

radzio
- 2,862
- 4
- 26
- 35
21
votes
1 answer
Enter transition on a fragment with a shared element targets the shared element
I am using the new Lollipop api to setEnterTransition on a fragment and then add a shared element transition for an image in the fragment. The desired behavior is first, the image should move to its position, after which the rest of the views in the…

Spencer
- 311
- 1
- 3
- 7