Questions tagged [animatorset]

29 questions
7
votes
2 answers

Create 3D animtation for Android Apps

I need to create a 3D flip/rotate animation based on the speed of the swipe of user on screen, I was able to create this animation using ObjectAnimator and its associated properties but I need suggestions how can we create a 3D animation in android…
Akshay Mukadam
  • 2,388
  • 1
  • 27
  • 40
6
votes
3 answers

How to add a delay between animations in AnimatorSet playSequentially()?

I'm using AnimatorSet playSequentially method like this: AnimatorSet set = new AnimatorSet(); ObjectAnimator in = ObjectAnimator.ofFloat(splash, "alpha", 0f, 1f); in.setDuration(2500); in.setInterpolator(new AccelerateInterpolator()); ObjectAnimator…
5
votes
3 answers

Restart AnimatorSet of AnimatedVectorDrawableCompat

This is I need Realized effect by AnimatedVectorDrawableCompat. vector_drawable_anim.xml
cs x
  • 621
  • 2
  • 8
  • 23
4
votes
1 answer

Animator/AnimatorSet issue on some devices

I have made some tests with the ObjectAnimator class on some devices and everything is OK except for one device : Huawei P8 Lite 2017. On this device, the View "disappears" when the animation starts and "appears" at the end. The issue appears only…
2
votes
1 answer

How to playSequentially a list of AnimatorSet?

I'm trying to make an animation of an imageview that revolves around a circle shape. Here is the currrent code who works but without repeating the animation with different values: public void runAnimation(){ ImageView…
2
votes
0 answers

onAnimationEnd not get called

because animator set doesn't provide REPEAT function, i am implementing my own repetition logic. but i have a problem on it. first, let me show you my sample code like below. My MainActivity -> public class MainActivity extends AppCompatActivity…
J.ty
  • 337
  • 1
  • 3
  • 18
1
vote
0 answers

Set specific Fraction or PlayTime for Child Animations in AnimatorSet

I have two different AnimatorSet, AnimatorSetX and AnimatorSetY. These animation sets have child animations that have different animation durations. My purpose is, based on AnimatorSetX's current time, set different time for AnimatorSetY's child…
ysfcyln
  • 2,857
  • 6
  • 34
  • 61
1
vote
1 answer

AnimatorSet stopping when playing sequentially

I have some code which creates a list of points called path. Here is a sample list: [[1, 3], [2, 3], [2, 4]] Here is the code I wrote to animate movement to these points sequentially: ArrayList movements = new ArrayList<>(); …
1
vote
0 answers

Android Studio ObjectAnimator doesn't work twice with same shift

I have been having an issue in which I simplified in the code below. When I press the button in the activity_main.xml layout, it should shift the images down about 1% the screen height. The problem is if I use the same shift for each button press…
DrJMV
  • 11
  • 2
1
vote
0 answers

Rotating and scaling a drawable using android ObjectAnimator

I saw a few examples of using an ObjectAnimator to rotate and scale an ImageView. However I want to rotate and scale a Drawable for API below 21 (So I cannot use AnimatedVectorDrawable). It doesn't have setRotation and setScaleX like an ImageView…
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
1
vote
1 answer

Chain animations not working with AnimatorSet

I want to "blink" a view 3x (scale down and back up, repeat 3x). It works, but not with AnimatorSet. This works: ibOffers.animate().scaleX(0.7f).scaleY(0.7f).setDuration(200).withEndAction(new Runnable() { @Override public void run() { …
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
1
vote
1 answer

What's the difference between AnimatorSet's and Object/ValueAnimator's duration?

I have a AnimatorSet with couple of ObjectAnimators. I can not see the difference between their duration time. Can anyone explain this to me?
wikktamm
  • 11
  • 2
1
vote
1 answer

Android how to chain "exploding" text animations in textView?

I'm trying to chain together 3 "exploding" text animations in textView to show 3 words sequentially: "Ready", "Set" & "Go!". By "exploding", I mean text size goes from 0.25f of default to 1.00f of default while alpha=0 to alpha=1. Problem: I'm able…
rockhammer
  • 957
  • 2
  • 13
  • 38
1
vote
1 answer

Android - Flashing backgroundColor and textColor of TextView together

I am trying to get a TextView to invert the background and text colors at an interval specified by a variable called "interval" (integer value representing milliseconds). Currently, I am using an ObjectAnimator for each property, then using an…
Ely Bascoy
  • 11
  • 5
1
vote
0 answers

How can I identify objects in the resulting ArrayList of AnimatorSet.getChildAnimations()?

So I've got a method (method 1) that returns an AnimatorSet to another method (method 2). In method 2, I'd like to pick some of the Animator's inside the AnimatorSet, and use them independently of each other. I found the .getChildAnimations()…
Timmiej93
  • 1,328
  • 1
  • 16
  • 35
1
2