Aktivität mit benutzerdefinierter Animation anzeigen

Ich habe ein Widget, das eine Aktivität startet, wenn darauf geklickt wird. Ich hätte gerne eine ausgefallene Animation, um diese Aktivität anzuzeigen, und nicht den normalen Bildlauf von rechts bei Android. Ich habe jedoch Probleme beim Einstellen. Das habe ich:

slide_top_to_bottom.xml

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator">
    <translate android:fromYDelta="-100%" android:toXDelta="0" android:duration="100" />
    <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="50" />
</set>

... auf das in @ verwiesen wi anim.xml

<?xml version="1.0" encoding="utf-8"?>
<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
        android:delay="50%"
        android:animation="@anim/slide_top_to_bottom" />

Aber woher beziehe ich es dann? Ich habe sowohl das Basiselement der Aktivität, in die ich hineingleiten möchte, als auch den Eintrag der Aktivität im Manifest versucht, beide Male mit

android:layoutAnimation="@+anim/anim"

Ich könnte das alles falsch machen. Jede Hilfe wird sehr geschätzt!

Antworten auf die Frage(6)

Ihre Antwort auf die Frage