Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 the properties that can be altered using these classes. For example, I saw one tutorial that did a quick rotation using:

ObjectAnimator.ofFloat(aniView, "rotation", 360) 

Which is quite cool, but I wouldn't have known the rotation property if not for that exact tutorial, is there any comprehensive list of what can be done? The particular property I want to animate is the weight of a view within a LinearLayout, if anyone has any advice on that specifically.

like image 839
Cathal Comerford Avatar asked Jul 24 '12 14:07

Cathal Comerford


People also ask

What property allows you to create complex animations?

CSS animations allow you to build complex animated sequences. Like transitions, they manipulate the CSS properties that control how interface elements appear. Unlike transitions, they are not tied to shifts between style sheets that distinguish interface states.


1 Answers

Better late than never, so here is the comprehensive list of the properties that can be animated with ObjectAnimator.

http://developer.android.com/guide/topics/graphics/prop-animation.html#views

like image 97
Onyx Avatar answered Sep 23 '22 12:09

Onyx