Ich habe ein Xml mit 12 Bild. zum Beispiel 3 * 4 Tabelle, wo jede Zelle ein Bild enthält. Im OnCreate schreibe ich Animation jedes Bild:Android: Verwenden Sie die Animation außerhalb des Sichtbereichs
AnimationSet set = new AnimationSet(true);
Animation animation = new TranslateAnimation(
Animation.ABSOLUTE, -300.0f, Animation.START_ON_FIRST_FRAME, 0.0f,
Animation.ABSOLUTE, -800.0f, Animation.START_ON_FIRST_FRAME, 0.0f);
animation.setFillBefore(true);
animation.setFillAfter(true);
animation.setFillEnabled(true);
animation.setDuration(5000);
Ich mag die Animation von oben links auf dem Bildschirm starten und die Animation zu realer Position zu beenden. Aber die Animation verwendet nur das Bild oder die Zellregion. Gibt es eine Lösung für die Animation, verwenden Sie den gesamten Bildschirm?