I am trying to create a menu that slides in when it is drawn. I
created an animation in res/anim called map_toolbar_in.xml:

<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android";
        android:fromYDelta="100%"
        android:toYDelta="0%"
        android:duration="150"/>

Then I have a linearLayout which I attempt to use it in:

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:id="@+id/zoom_buttons"
              android:orientation="horizontal"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_alignParentTop="true"
              android:layout_marginTop="20dp"
              android:layout_marginRight="20dp"
              android:layoutAnimation="@anim/map_toolbar_in"
              >
</LinearLayout>

When I run the program I get a bunch of errors, starting with:

04-05 18:17:05.287: ERROR/AndroidRuntime(4258): Caused by:
java.lang.RuntimeException: Unknown layout animation name: translate
04-05 18:17:05.287: ERROR/AndroidRuntime(4258):     at
android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java:
178)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258):     at
android.view.animation.AnimationUtils.createLayoutAnimationFromXml(AnimationUtils.java:
153)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258):     at
android.view.animation.AnimationUtils.loadLayoutAnimation(AnimationUtils.java:
134)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258):     at
android.view.ViewGroup.initFromAttributes(ViewGroup.java:343)
04-05 18:17:05.287: ERROR/AndroidRuntime(4258):     at
android.view.ViewGroup.<init>(ViewGroup.java:286)

Does anyone have any ideas?

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to