Questions tagged [android-animation]

Animations can be integrated into Android Apps, through both Java and XML.

Android animations can use a few default interpolators (these specify whether the animation goes at the same speed, or, for example, speeds up or slows down), and custom ones can be created.

Android Animation Reference

5379 questions
58
votes
4 answers

Android page Curl animation

Is there a simple way to do the Curl page flipping animation? A Curl animation is animation of pages flipping, including the page above rolling and the shadows over the lower page. What is the recommended way to do a "gallery" that displays two…
Meymann
  • 2,500
  • 2
  • 25
  • 22
58
votes
4 answers

Android properties that can be animated with ObjectAnimator

I am starting to play around with Property Animations over view animations as I have a view that needs to scale and push others out of the way as it does. I've seen some examples but I'm just wondering if there is anywhere that provides a list of…
57
votes
12 answers

Pop the fragment backstack without playing the Pop-Animation

I push a fragment on the fragment stack using the following code: FragmentManager fragmentManager = getActivity().getSupportFragmentManager(); FragmentTransaction fragmentTransaction =…
ChristophK
  • 3,009
  • 2
  • 22
  • 28
57
votes
3 answers

Detecting when ValueAnimator is done

Right now I am detecting the end of my ValueAnimator by checking when the progress has reached 100... //Setup the animation ValueAnimator anim = ValueAnimator.ofInt(progress, seekBar.getMax()); //Set the…
Tyler
  • 15,509
  • 9
  • 45
  • 81
57
votes
5 answers

animateLayoutChanges does not work well with nested layout?

I have a nested layout like the following: ... ... …
Chen
  • 1,416
  • 1
  • 12
  • 16
56
votes
5 answers

Performing action after fragment transaction animation is finished

I want to set a buttons visibility after the animation is finished. That's what calls the animation: android.support.v4.app.FragmentTransaction fAnimation =…
Moop
  • 593
  • 1
  • 4
  • 6
54
votes
1 answer

JNI Error on Scene Transition Animation - Layer exceeds max

please notice the EDIT in the bottom of the question I have 2 activities: ActivityA, ActivityB with associated frgments: FragmentA, FragmentB respectively. ImageView v is shared between those two fragments. some Code: ActivityA Intent intent = new…
royB
  • 11,685
  • 14
  • 48
  • 77
53
votes
4 answers

Repeat android animation

public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.vitesse); gpsManager = new GPSManager(); gpsManager.startListening(getApplicationContext()); …
EMIN
  • 687
  • 1
  • 6
  • 9
51
votes
11 answers

Layout animation not working on first run

I have an Activity with a list of items and when you click on an item, I want playback controls for that item to slide up from the bottom of the screen and become visible. I've defined an animation set for the slide in and the slide out and they…
brockoli
  • 4,376
  • 6
  • 34
  • 45
50
votes
1 answer

Animation.setFillAfter/Before - Do they work/What are they for?

As in the title of my question what are the methods setFillBefore() and setFillAfter() supposed to do? I was hoping setFillAfter() would make the change to the View permanent after an animation has completed, but this is incorrect?
D-Dᴙum
  • 7,278
  • 8
  • 50
  • 90
48
votes
1 answer

What do pivotX and pivotY mean in Android animations?

These two terms occur in many places but what exactly do they mean in the context of Android animations?
srujan maddula
  • 1,150
  • 2
  • 11
  • 19
48
votes
6 answers

How to do the new PlayStore parallax effect

Does anyone know how can I achieve the new parallax scrolling effect - you can see the effect when you open an app on the PlayStore and try to scroll down, the content goes over the top image. How can I achieve that?
47
votes
3 answers

Resizing layouts programmatically (as animation)

I want to resize some layouts in my Activity. Here is the code of the main XML:
dor506
  • 4,466
  • 7
  • 37
  • 67
47
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,013
  • 6
  • 28
  • 67
46
votes
5 answers

Change DialogFragment enter/exit transition at just before dismissing

I have a DialogFragment and I set animation for enter/exit in the onActivityCreated method as below: @Override public void onActivityCreated(Bundle arg0) { super.onActivityCreated(arg0); getDialog().getWindow() …