[android-developers] Re: Animation Xml Resource and CycleInterpolator tag: FAIL
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 -~--~~~~--~~--~--~---
[android-developers] Re: Animation Xml Resource and CycleInterpolator tag: FAIL
Euhm.. Then tell me why this class exists: http://developer.android.com/reference/android/view/animation/CycleInterpolator.html The class exists yes, but not its equivalent XML tag. An i just follow the documentation for specifying interpolators: http://developer.android.com/guide/topics/resources/available-resources.html#animation I just read this documentation, it's wrong and very outdated. However when searching the internet is also see the following naming: @android:anim/ease_in_interpolator This comes from a very old version of Android, *before* 1.0. By the way.. i want to use the linear interpolator in my xml like this: android:interpolator=@android:anim/linear_interpolator Please file a feature request at http://b.android.com. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Animation Xml Resource and CycleInterpolator tag: FAIL
Thanks for the info, figured it out myself by now :-) Nice to see you working on android, i followed your weblog a time ago (a year or so) about Swing and cool UI stuff (i think you worked @ sun then)! Greetings, Tjerk On 16 mei, 20:44, Romain Guy romain...@google.com wrote: Euhm.. Then tell me why this class exists: http://developer.android.com/reference/android/view/animation/CycleIn... The class exists yes, but not its equivalent XML tag. An i just follow the documentation for specifying interpolators: http://developer.android.com/guide/topics/resources/available-resourc... I just read this documentation, it's wrong and very outdated. However when searching the internet is also see the following naming: @android:anim/ease_in_interpolator This comes from a very old version of Android, *before* 1.0. By the way.. i want to use the linear interpolator in my xml like this: android:interpolator=@android:anim/linear_interpolator Please file a feature request athttp://b.android.com. -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Animation Xml Resource and CycleInterpolator tag: FAIL
Btw, in the meantime you can set any interpolator you want using Java code. I know it's not as nice as XML, but it helps. Also, you can create your own linear_interpolator.xml in your application's res/anim directory. You can copy this file: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/anim/linear_interpolator.xml;h=70bbeccad52d561de8502df1b1e0ae001d27935c;hb=master On Sat, May 16, 2009 at 12:12 PM, TjerkW tje...@gmail.com wrote: Thanks for the info, figured it out myself by now :-) Nice to see you working on android, i followed your weblog a time ago (a year or so) about Swing and cool UI stuff (i think you worked @ sun then)! Greetings, Tjerk On 16 mei, 20:44, Romain Guy romain...@google.com wrote: Euhm.. Then tell me why this class exists: http://developer.android.com/reference/android/view/animation/CycleIn... The class exists yes, but not its equivalent XML tag. An i just follow the documentation for specifying interpolators: http://developer.android.com/guide/topics/resources/available-resourc... I just read this documentation, it's wrong and very outdated. However when searching the internet is also see the following naming: @android:anim/ease_in_interpolator This comes from a very old version of Android, *before* 1.0. By the way.. i want to use the linear interpolator in my xml like this: android:interpolator=@android:anim/linear_interpolator Please file a feature request athttp://b.android.com. -- 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 -- 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 -~--~~~~--~~--~--~---
[android-developers] Re: Animation Xml Resource and CycleInterpolator tag: FAIL
Cycle interpolator does not exist. And it's not how you specify an animation's interpolator anyway :) 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-resources.html#animation 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 -~--~~~~--~~--~--~---