Questions tagged [android-transitions]

Tag related with Android animation effects between screens or scenes

739 questions
0
votes
1 answer

Difficulty reversing fragment animation with backstack

I am currently trying to implement a custom animation when changing fragments. The custom animation only works one way and does not work when back is pressed. On back press the correct fragment is shown but with no animation. My code for the…
0
votes
0 answers

Explode transition affects shared element transition

I have a recyclerview displaying some images in a grid. When I click one of these images I add a new fragment with the image as the shared element. I also use the explode transition to move the other items in the recyclerview off screen. When I add…
Eoin
  • 4,050
  • 2
  • 33
  • 43
0
votes
1 answer

Circular Reveal Android Soften Edges

I'm just experimenting with the new Lollipop transitions and was curious if the following was possible. Right now I have a circular reveal animation working beautifully but it reveals the background with a very hard line. I was wondering if it was…
0
votes
1 answer

Material transition design for android

I have this application which consists of 1 activity and 1 fragment inside it. Let's name it Fragment A. So Fragment A consists of 3 buttons BtnA, BtnB, and BtnC. When I click on BtnA in Fragment A, Fragment B will replace this Fragment A. Inside…
0
votes
1 answer

Touch targets do not move with object when using translate animation?

Whenever I use TranslateAnimation to move an object to a new location, for some reason, the touch target of that object remains in the old position. How do I change this behaviour? eg. public static void hideViewUp (View v, int duration) { …
Shubham Kanodia
  • 6,036
  • 3
  • 32
  • 46
0
votes
1 answer

Shared Elements Transition and GridViews

I can't seem to create a Shared Elements Transition from an Image in my main activity and an image in a detail activity. The problem seems to be on the .makeSceneTransitionAnimation arguments. I have passed in a reference to the activity, an image…
0
votes
1 answer

error in creating a scene

I am trying to create two scenes and add transition among them. But when i am initializing a scene by calling a method Scene.getSceneForLayout() runtime error occurs. Logcat error : (Could not find method android.transition.Scene.getSceneForLayout,…
Patriotic
  • 2,103
  • 4
  • 26
  • 36
0
votes
0 answers

How can I achieve a look and feel similar to the Facebook app's welcome screen?

I use a splash screen as welcome screen in my app, but after loading the splash screen, it glitches or starts jumping before loading the main XML layout instead of loading smoothly. I really like the look and feel of the Facebook app's welcome…
0
votes
2 answers

Gmail App - Lollipop Shared Elements transitions

I know that this question is being asked many times, but still i was not able to find solution. Well we all know that Lollipop Shared Elements transitions only work with lollipop devices, but the recent update to Gmail app has the same animation…
0
votes
1 answer

changeCanvasOpacity gets changed after Transition

My problem occurs a few seconds after a transition is complete. The Log says "changeCanvasOpacity: opaque=true", which puts a black screen on my mapview. When i return to Activity A opaque gets changed to false again. So my question is, why does the…
0
votes
0 answers

How to control transition of entering or exit activity depending on either it is returning to its previous activity or calling new one?

I have 3 activities where Activity A start Activity B, and Activity start Activity C. A <=> B <=> C So when I go from Activity A to B, I use this.overridePendingTransition(R.animator.slide_in_left, R.animator.slide_out_right); From Activity B back…
Elye
  • 53,639
  • 54
  • 212
  • 474
0
votes
1 answer

Android selector long press with colors

This is what I need: A selector to show that you pressed it. But this selector also handles the long-press color transition. I looked a lot and found this. This is basically what I need, but this only works with images, not colors. Here is my code…
0
votes
2 answers

What do activities transition differently than views?

I recently switched to have a single activity (thanks to mortar & flow) which I then switch full screen views instead of starting new activities with the following code. setAnimation(direction, oldChild, newChild); // Out with the old, in…
FriendlyMikhail
  • 2,857
  • 23
  • 39
0
votes
1 answer

Using overridePendingTransition() to animate the first Activity

I'm trying to use overridePendingTransition() to animate the very first Activity - the one that gets created when the user launches the app. Is this possible? Where should I call overridePendingTransition()? Tried right after super.onCreate() and…
natario
  • 24,954
  • 17
  • 88
  • 158
0
votes
0 answers

How to implement Lollipop activity transitions with views

I have a custom view, that I replace with different view. Part of the elements on the new view are connected. Like the user image. I want to use the same animation effect as in Lollipop activities transition between my views. Is there any way to…