Euhm.. Then tell me why this class exists:
http://developer.android.com/reference/android/view/animation/CycleInterpolator.html

An i just follow the documentation for specifying interpolators:
http://developer.android.com/guide/topics/resources/available-resources.html#animation

By the way, i also checked this site:
http://developerlife.com/tutorials/?p=343

He speciffies interpolators with this xml attribute:
 android:interpolator="@android:anim/accelerate_interpolator"

However when searching the internet is also see the following naming:
@android:anim/ease_in_interpolator

Are the ease_in ease_out just other names for the accelerate and
decelerate interpolators?
Or is this a refactoring done in android 1.5?

By the way.. i want to use the linear interpolator in my xml like
this:
android:interpolator="@android:anim/linear_interpolator"

But then i get an error:  linear_interpolator is not public.. so
cannot use it.


So please help me out

On 14 mei, 23:35, Romain Guy <romain...@google.com> wrote:
> Cycleinterpolatordoes not exist. And it's not how you specify an
> animation'sinterpolatoranyway :)
>
>
>
> On Thu, May 14, 2009 at 2:34 PM, TjerkW <tje...@gmail.com> wrote:
>
> > I specified an animation resource using xml:
>
> > <set xmlns:android="http://schemas.android.com/apk/res/android";>
> >        <alpha
> >                android:fromAlpha="0.0"
> >                android:toAlpha="1.0"
> >                android:duration="5000"
> >                android:fillAfter="true" />
> >   <CycleInterpolator cycles="2"/>
> > </set>
>
> > Exactly as explained here:
> >http://developer.android.com/guide/topics/resources/available-resourc...
>
> > What am i doing wrong here?
> > I am getting this Exception:
>
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843): Caused by:
> > java.lang.RuntimeException: Unknown animation name: CycleInterpolator
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > android.view.animation.AnimationUtils.createAnimationFromXml
> > (AnimationUtils.java:117)
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > android.view.animation.AnimationUtils.createAnimationFromXml
> > (AnimationUtils.java:107)
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > android.view.animation.AnimationUtils.createAnimationFromXml
> > (AnimationUtils.java:84)
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > android.view.animation.AnimationUtils.loadAnimation
> > (AnimationUtils.java:64)
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > com.airattack.SplashScreen.onCreate(SplashScreen.java:28)
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1123)
> > 05-14 21:19:57.081: ERROR/AndroidRuntime(843):     at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2231)
>
> > (b.t.w i solved this by setting the inperpolator using javacode.. but
> > thats not the most beautifull solution)
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to