Tag related with Android animation effects between screens or scenes
Questions tagged [android-transitions]
739 questions
20
votes
1 answer
Return transition not working correctly when using fragment shared transitions
I have 2 fragments ListMovieFragment and DetailMovieFragment.
I have an interface in ListMovieFragment that is implemented in the MainActivity. I am using shared element transition ; when I click the image view in ListMovieFragment the…

ant2009
- 27,094
- 154
- 411
- 609
20
votes
2 answers
How can one know if an activity is started without a transition?
I have a use case where I mostly start an activity with a transition, but that's not the case when opening it from the navigation drawer.
To keep the transition smooth I have a Transition.TransitionListener in which I trigger some UI updating when…

Roy Solberg
- 18,133
- 12
- 49
- 76
20
votes
1 answer
Shared Element Transitions Between Views (not Activities or Fragments)
Let's say I'm using a view-based approach to develop an Android application like for example described in the following article: http://corner.squareup.com/2014/10/advocating-against-android-fragments.html
So now I have two full screen views. One is…

Eugen
- 2,770
- 4
- 26
- 31
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…

Ted
- 19,727
- 35
- 96
- 154
19
votes
1 answer
FragmentTransaction.replace() fade-in transition shows "ghost" fragment
You can download my entire project to try and debug. Here is a repo of my entire code: https://bitbucket.org/lexic92/studio48/
I have a "ghost fragment" appearing in the transition when I try to replace a blank fragment with a blank fragment.
How…

Rock Lee
- 9,146
- 10
- 55
- 88
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…

aldok
- 17,295
- 5
- 53
- 64
17
votes
2 answers
Activity Transitions not working
I am trying to implement Activity Transitions but I am not able to see the effects. Here is the code for my first activity:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

Amit Tiwari
- 3,684
- 6
- 33
- 75
17
votes
4 answers
Start Activity from Fragment using Transition (API 21 support)
I'm trying to port an Android app to the new support library (support-v4:21.0.0) and I'm having trouble starting Activities from Fragments with a transition.
In my Activities, I've been doing something like:
Bundle options =…

Damian Wieczorek
- 170
- 1
- 8
16
votes
4 answers
How to give top to bottom animation in Android?
I am able to give bottom to top animation when I go to next activity but now when I pressed back I am using same code for giving animation from top to bottom animation but it always goes to bottom to top so my question is how to give animation from…

shyam
- 1,276
- 4
- 25
- 51
16
votes
1 answer
Replacing fragments have wrong elevation value
Hello again stack overflowians. I have another fragment question. (I'm using android.app.Fragment not Support Fragments)
I'm trying to replace a fragment. But this isn't as simple as using:
fragmentTransaction
.replace(containerId, newFragment)
…

zafrani
- 4,030
- 5
- 31
- 39
16
votes
2 answers
Update source activity before exit transition
I need help about transition between activities:
I have two activities A and B and both have a ViewPager with the same image list. Every page has an ImageView with the transitionName equals to image_x where x is the page…

fran
- 1,119
- 1
- 10
- 27
16
votes
3 answers
Smooth slide image one way
I have image which is symmetrical and I want to move it infinitly from right to left smoothly. I tried to use TranslateAnimation but first I have to properly set my image which is quite difficult mainly because this image is using all screen width…

falsetto
- 789
- 2
- 11
- 35
16
votes
3 answers
How to remove the delay when opening an Activity with a DrawerLayout?
I have an activity with a DrawerLayout but whenever it opens there is a delay like a split-second where the screen is white then my screen is drawn.
This happens after the Transition finishes. So it sort of looks like the screen animation…

John Ernest Guadalupe
- 6,379
- 11
- 38
- 71
16
votes
1 answer
Activity transition not performed (Lollipop)
I am animating a transition between activity X and activity Y.
X contains a list with images, and when an image is clicked is expanded and "zoomed" in activity Y.
So, this image is a share element between X and Y. I have set its transitionName…

Alessandro Roaro
- 4,665
- 6
- 29
- 48
15
votes
3 answers
View Pager with previous and next item smaller in size with infinite scroll
Want to create the view pager same as following UI, applied custom transformer but not working.
ViewPager.java
public class MyViewPager extends ViewPager implements ViewPager.PageTransformer {
public static final String TAG =…

mdDroid
- 3,135
- 2
- 22
- 34