Pulldown Animation unter Android 4.2.1

  • Hallo,

    ich weiß nicht ob ich überhaupt in dem Forum richtig bin,wenn nicht bitte ich das zu entschuldigen.

    Ich würde gerne eine Animation anstelle des Pulldown Backgrounds erstellen.

    [Blockierte Grafik: http://www.bilder-upload.eu/thumb/9bb1dc-1406920733.png]


    Der Background wird in der SystemUI.apk/res/layout/tw_statusbar.xml definiert.

    android:background="@drawable/1"

    HTML
    <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout android:id="@id/notification_panel" android:background="@drawable/1" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">


    Wie kann ich das umsetzen das anstelle des Backgroundes eine Animation von 3 Bildern (png) abgespielt wird?

    Ich weiß das man eine xml mit einer Animations List ( anim.xml )erstellen kann

    HTML
    <animation-list android:id="@+id/selected" android:oneshot="false">
        <item android:drawable="@drawable/png1" android:duration="50" />
        <item android:drawable="@drawable/png2" android:duration="50" />
        <item android:drawable="@drawable/png3" android:duration="50" />
    </animation-list>

    Diese dann als Background definieren

    HTML
    <?xml version="1.0" encoding="utf-8"?>
    <FrameLayout 
    android:id="@id/notification_panel" android:background="@drawable/anim android:paddingTop="@dimen/notification_panel_padding_top" 
    android:layout_width="fill_parent" android:layout_height="fill_parent" 
    android:layout_marginLeft="@dimen/notification_panel_margin_left"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

    Aber trotzdem klappt es nicht,es wird nur das erste Bild angezeigt.


    Wäre sehr Dankbar für Eure Hilfe.

    Gruß
    Marcel

    Einmal editiert, zuletzt von marcel2909 (1. August 2014 um 20:47)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!