Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [objectanimator]

Android class which animates an object based on a specified property of the object.

objectanimator
0 votes
2 answers
29 views

How to set velocity of animation in Android

I have a set of animations, I noticed that when each piece starts the speed is very fast, how can I adjust the execution speed? I try this but the animation is too fast val animator1 = ObjectAnimator ...
DevMD's user avatar
  • 27
0 votes
0 answers
14 views

Looking for a better way to reset Animator

I'm working on a button bubble animation. I have it working but I'm not super happy with how to reset the animators after each press. I am trying to not re-create objects unneccessarily (it totally ...
Mathias's user avatar
  • 3,921
0 votes
0 answers
19 views

ObjectAnimator Freezes UI

I have a BottomNavigationView with a few fragments. In the Main Activity that holds the fragments I have an ObjectAnimator that rotates an imageView. When the rotation slows down and stops (which I ...
Lance Samaria's user avatar
0 votes
1 answer
52 views

Android: Animating SCALE_X and SCALE_Y on TextView looks choppy and not smooth

When animating small deltas for SCALE_X and SCALE_Y on TextViews, the results are choppy and don't look smooth. To illustrate this problem, I have coded up a sample project here: https://github.com/...
user1837598's user avatar
0 votes
0 answers
109 views

How to skip to next Animation in AnimatorSet

I am building a game that uses animations of images sequentially (using ObjectAnimators in an AnimatorSet). I would like to skip to the next animation if certain conditions are met. How would I go ...
air conditioning's user avatar
0 votes
0 answers
27 views

I want that the last item of the listview row blink if its value is "En cours"? but I see that other rows having a different value are blinking too

an image showing an example I use this code as a custom listview adapter View vi = convertView; if (vi == null) { if(u.get(position).getLivreur().equalsIgnoreCase("NB")) ...
Iceman2104's user avatar
1 vote
0 answers
147 views

Android ObjectAnimator not moving second view when one view is moved by animation

<LinearLayout> <Checkbox> <Textview> <Imageview> </LinearLayout> In my Linearlayout with horizontal orientation, When I animate checkbox slide in from left to ...
Deebash D's user avatar
1 vote
0 answers
302 views

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,...
ysfcyln's user avatar
  • 3,077
2 votes
0 answers
241 views

Animation to ObjectAnimator

I have an RotateAnimation with transition of views var i = 0 for (image in imageList) { image.translationX = translationsize[i].x image.translationY = translationsize[i].x val anim = ...
Christine's user avatar
1 vote
1 answer
99 views

ObjectAnimators are two times faster then the given duration - Android

I have a translate animation like this fun createTranslateAnimation(fromX: Float, toX: Float, fromY: Float, toY: Float): ObjectAnimator { val propertyValuesX = PropertyValuesHolder.ofFloat(...
Hayk Mkrtchyan's user avatar
1 vote
0 answers
243 views

RecyclerView - Custom DefaultItemAnimator problem

I have custom animator for recyclerview items, that change alpha channel from 1 to 0 and 0 to 1 Code: class CustomAnimator: DefaultItemAnimator() { lateinit var animator: ObjectAnimator companion ...
SWR's user avatar
  • 73
0 votes
1 answer
149 views

Blink CardView does not start [Object Animator, Android]

today I'm trying to make blink effect in my CardView... Works if I put backgroundColor but does not if I use strokeColor. I've followed this tutorial to make it real but is not working really... How ...
Antonio Labra's user avatar
0 votes
1 answer
92 views

ObjectAnimator strange behaviour while trying to pause

I have a few animated objects. I use a custom class to store their ImageViews and ObjectAnimators And I have a method for pausing them. It looks pretty simple: public void pause_animations(View view) {...
Laughing_Man's user avatar
0 votes
2 answers
544 views

How to make animation using ObjectAnimator?

My application is used in landscape orientation. What I want to do is move an element from off the screen at all until it enters the screen and then when pressing a button, it leaves the screen again ...
UyerBit's user avatar
  • 71
0 votes
1 answer
141 views

How to animate View while quickly changing its position along Y axis?

The users are allowed to change the Button position on the screen along the Y-axis using the slider. As this happens, I want to animate my Button. For example, the View is located at (0,0), and the ...
DoubleYouJeeOh's user avatar

15 30 50 per page
1
2 3 4 5
24