zeigen Sie mehrere Bilder animation

Ich zeigen möchte, ein Bild im hintergrund und mehrere Bilder nach unten bewegen, ebenso wie die "Schnee" - Szene so, wie ich es machen kann?Hintergrundbild soll sich nicht bewegen, nur kleine Bilder über es sollte fallen.Wie kann ich dies tun????

Update-->
Ich habe Bilder auf dem Bildschirm, aber Sie alle kommen auf die gleiche Zeit, aber ich will zeigen, Bilder, die zu unterschiedlichen Zeiten, wie kann ich dies tun?hey bitte deuten einige Weg.ist das der richtige Weg ist oder, wenn nicht, bitte schlagen Sie mich der richtige Weg ....

Hier ist mein code:

public class AnimationActivity extends Activity implements AnimationListener 
{
    /** Called when the activity is first created. */

    LinearLayout layout;

    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Animation movement;
        layout = (LinearLayout) findViewById(R.id.linearLayout_ani);
        movement = AnimationUtils.loadAnimation(this,R.layout.abc);
        movement.reset();
        movement.setFillAfter(true);
        movement.setAnimationListener(this);
        movement.setRepeatCount(1);
        movement.setRepeatMode(7);

        layout.startAnimation(movement);            

    }
    @Override 
    public void onAnimationEnd(Animation movement) 
    {
        //TODO Auto-generated method stub      
    }
    @Override
    public void onAnimationRepeat(Animation arg0) 
    {
        //TODO Auto-generated method stub

    }
    @Override
    public void onAnimationStart(Animation arg0) 
    {
    }
}

Hier ist die animation layout-Datei:

<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromXDelta="0%"
    android:toXDelta="50%"
    android:fromYDelta="0%"
    android:toYDelta="95%" 
    android:duration="10000" 
    android:zAdjustment="normal" />

main .xml-Datei

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/linearLayout"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical"
     android:background="@drawable/wall">

    <LinearLayout android:id="@+id/linearLayout_ani"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="horizontal" 
     >   
    <ImageView android:id="@+id/snowimg1" 
       android:layout_width ="wrap_content"
       android:layout_height ="wrap_content"
       android:visibility="visible" 
       android:background="@drawable/snow1"
       ></ImageView>
       <ImageView android:id="@+id/snowimg2" 
       android:layout_width ="wrap_content"
       android:layout_height ="wrap_content"
       android:visibility="visible" 
       android:background="@drawable/snow1"
       ></ImageView>
       <ImageView android:id="@+id/snowimg3" 
       android:layout_width ="wrap_content"
       android:layout_height ="wrap_content"
       android:visibility="visible" 
       android:background="@drawable/snow1"
       ></ImageView>
       <ImageView android:id="@+id/snowimg4" 
       android:layout_width ="wrap_content"
       android:layout_height ="wrap_content"
       android:visibility="visible" 
       android:background="@drawable/snow1"
       ></ImageView>
       <ImageView android:id="@+id/snowimg5" 
       android:layout_width ="wrap_content"
       android:layout_height ="wrap_content"
       android:visibility="visible" 
       android:background="@drawable/snow1"
       ></ImageView>
       <ImageView android:id="@+id/snowimg6" 
       android:layout_width ="wrap_content"
       android:layout_height ="wrap_content"
       android:visibility="visible" 
       android:background="@drawable/snow1"
       >
    </ImageView>
    </LinearLayout> 

</LinearLayout>    
  • Hey wer weiß das plz etwas vorschlagen.........
InformationsquelleAutor Geetanjali | 2011-07-25
Schreibe einen Kommentar