空港のフライト スケジュール ボードのように、テキストのアニメーションを作成したいと考えています。上からドロップして、その上のテキストを変更します。これが画像です。そのため、ボタンをクリックすると、画像のテキストが上記のアニメーションで変化するはずです。アンドロイドで可能ですか?
Androidでこの種のアニメーションを実現するにはどうすればよいですか?
編集:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/clockbg1" android:duration="150" />
<item android:drawable="@drawable/clockbg2" android:duration="150" />
<item android:drawable="@drawable/clockbg3" android:duration="150" />
<item android:drawable="@drawable/clockbg4" android:duration="150" />
<item android:drawable="@drawable/clockbg5" android:duration="150" />
<item android:drawable="@drawable/clockbg6" android:duration="150" />
</animation-list>
私の活動クラス:
public class XMLAnimation extends Activity {
private static AnimationDrawable animation;
private ImageView refresh;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
refresh = (ImageView) findViewById(R.id.simple_anim);
refresh.setBackgroundResource(R.drawable.loader_animation);
animation = (AnimationDrawable) refresh.getBackground();
}
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
animation.start();
}
この画像に垂直にアニメーション化されたテキストを配置して、作成したいアニメーションのように見せるにはどうすればよいですか?
ありがとう、AndroidVogue