Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1064451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:56:30+00:00 2026-05-16T18:56:30+00:00

I have an animation specified in xml like this: <?xml version=1.0 encoding=utf-8?> <set xmlns:android=http://schemas.android.com/apk/res/android>

  • 0

I have an animation specified in xml like this:

<?xml version="1.0" encoding="utf-8"?>

<set xmlns:android="http://schemas.android.com/apk/res/android">
·       <translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="300" android:interpolator="@android:anim/anticipate_overshoot_interpolator" />
·       <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="300" />
</set>

This file is res/anim/push_right_in.xml

Then in Java code I try to load it like this:

mAnimationRightIn = AnimationUtils.loadAnimation(this, R.anim.push_right_in);

It works perfectly fine on 1.6, 2.1, 2.2, but throws an exception on 1.5:

clock.ClockSelectActivity}: java.lang.RuntimeException: Unknown interpolator name: set
E/AndroidRuntime(  682):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
E/AndroidRuntime(  682):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
E/AndroidRuntime(  682):        at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime(  682):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
E/AndroidRuntime(  682):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  682):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  682):        at android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime(  682):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  682):        at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  682):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime(  682):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime(  682):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  682): Caused by: java.lang.RuntimeException: Unknown interpolator name: set
E/AndroidRuntime(  682):        at android.view.animation.AnimationUtils.createInterpolatorFromXml(AnimationUtils.java:321)
E/AndroidRuntime(  682):        at android.view.animation.AnimationUtils.loadInterpolator(AnimationUtils.java:270)
E/AndroidRuntime(  682):        at android.view.animation.Animation.setInterpolator(Animation.java:290)
E/AndroidRuntime(  682):        at android.view.animation.Animation.<init>(Animation.java:213)
E/AndroidRuntime(  682):        at android.view.animation.TranslateAnimation.<init>(TranslateAnimation.java:54)
E/AndroidRuntime(  682):        at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:115)
E/AndroidRuntime(  682):        at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:107)
E/AndroidRuntime(  682):        at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:84)
E/AndroidRuntime(  682):        at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:64)
E/AndroidRuntime(  682):        at com.the7art.rockclock.ClockSelectActivity.onCreate(ClockSelectActivity.java:46)
E/AndroidRuntime(  682):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime(  682):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
E/AndroidRuntime(  682):        ... 11 more

Any idea on what causes this and how to fix?
I checked some examples xml-defined animations in Android’s API samples and they contain almost the same code, with different parameters, so I guess it really should work.

I see one way would be to stop defining them in xml and create animations in code, but I’d like to know if there is a way to still do it in xml 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:56:31+00:00Added an answer on May 16, 2026 at 6:56 pm

    Found the reason.

    It crashed because I had “android:interpolator=”@android:anim/anticipate_overshoot_interpolator” attribute in the first anim tag. It didn’t work anyway (because it needed android:shareInterpolator=”false” in tag to work), so I just removed this.

    I guess this is some Android 1.5 bug 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i can use an XML file like below <set xmlns:android=http://schemas.android.com/apk/res/android android:interpolator=@android:anim/decelerate_interpolator> <translate android:fromXDelta=100% android:toXDelta=0%
I have a animation of moving blocks but I would like to add feature
I have an animation set to slide a DIV down when the DOWN link
I have this CSS3 animation that works in Chrome .circle-label-rotate { -webkit-animation-name: rotateThis; -webkit-animation-duration:.5s;
OK, I have my site going pretty well here: http://www.marioplanet.com But I've realized that
I have just started this week in exploring Android Open GL ES and related
I have an animation I want to run, and when I set the drawable
In my header, I have this CSS specified. a:link { -moz-transition: all 0.2s ease-in-out;
I have a animation in my navigationbased application. [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.5]; [UIView
I have an animation on a partially hidden div container that will execute when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.