- Android
-
2011-12-06 - 更新:2011-12-08
この記事は最終更新日から1年以上経過しています。
Animationオブジェクトにリスナーを登録します。
今回は直接登録していますが、implementsすることも可能です。
1 | AnimationObject.setAnimationListener( new AnimationListener() { |
2 |
3 | @Override |
4 | public void onAnimationEnd(Animation animation) { |
5 | // アニメーション終了時 |
6 | } |
7 |
8 | @Override |
9 | public void onAnimationRepeat(Animation animation) { |
10 | // アニメーションの繰り返し時 |
11 | } |
12 |
13 | @Override |
14 | public void onAnimationStart(Animation animation) { |
15 | // アニメーション開始時 |
16 | } |
17 | |
18 | }); |
この記事がお役に立ちましたらシェアお願いします

5,368 views