i’m writing
Animation anIn;
but Animation error,
Animation cannot be resolved to a type;
and I don’t want to import
android.view.animation;
I want to use nineoldandroids library. So import that library project to work-space, then right click on my project , properties, and in Android Tab reference to library in work-space.
now i can see com.nineoldandroids imports.
but error exist yet!
what’s wrong?
how can i change a sample from android animation imports to nineoldandroids imports?
As i see here: http://nineoldandroids.com/
There is only animation package and to animate for example a view you have to import and use
ObjectAnimatorinstead ofAnimationYou can download sources of nineoldandroid and found that there is no
Animationclass at all.UPDATED
Nineoldandroid library is used to support old devices with new (comes with honeycomb (api11+)) animation apis (Animators). So to use
Animationclasses which comes with api lvl 1 you don’t need to use oldnineandroid, because this classes are already in all of the android phones.You only have to use nineoldandroid if you want to use new APIs.
Link to understand =) : http://www.informit.com/articles/article.aspx?p=1755915