Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

XML Animation List Duration not working

  1. Jul 21, 2014 #1
    I am creating a border for an image view using xml. This is what I have:

    <animation-list xmlns:android="http://schemas.android.com/apk/res/android" [Broken] >

    <item android:duration="200">
    android:shape="rectangle" >
    android:color="#FF0000" />
    <solid android:color="#000099" />

    The border shows up but it stays with the imageview and does not disappear. I want it to disappear after 2 seconds. What is wrong?
    Last edited by a moderator: May 6, 2017
  2. jcsd
  3. Aug 10, 2014 #2
    I'm sorry you are not generating any responses at the moment. Is there any additional information you can share with us? Any new findings?
  4. Aug 11, 2014 #3
    A problem is that you are specifying 200 instead of 2000 msec.
    I have never programmed an android, but just as a guess, do you need additional items in your animation list?
    Are you expecting the box to disappear once your list is complete?
  5. Aug 13, 2014 #4


    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    Unless the code isn't using the standard of milliseconds. Maybe it's waiting 200 seconds (3 1/2 minutes) to go away.
  6. Aug 14, 2014 #5
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook