How to wait for animation end

Fade In my last article / fade, but I could implement
I was at the fade-out switch images
It will not work much.

Immediately after the fade ends
I tried to switch ImageView image,
I switched it from fading out of the movement.

I find the idea to wait for the end of the animation in any way.

Specifically, the following code.

/ / Create an instance of animation
AlphaAnimation alpha1 = new AlphaAnimation (1, 0);
/ / Change time
alpha1.setDuration (1000);
/ / Start animation
SlideView.startAnimation (alpha1);
/ / Change the image method
setImage ();

And do it, I would have switched from the image fades.

Why do not you find, “onAnimationEnd” that I found.

Apparently the animation listener register instance,
It seems to detect the end.

Nde, Why do not you like this went well.

/ / Create an instance of animation
AlphaAnimation alpha1 = new AlphaAnimation (1, 0);
/ / Change time
alpha1.setDuration (1000);
/ / Register listener
alpha1.setAnimationListener (this);
/ / Start animation
SlideView.startAnimation (alpha1);

Image switching method,
described in onAnimationEnd.

public void onAnimationEnd (Animation anime) (
/ / Change the image method
setImage ();
)

But Android is little documentation about the animation I

Generally not on the books quite well.

It gave me great helpful to someone reports w

Androidアプリ講座オープン
副業大学にAndroidアプリ作成講座がオープン。
アフィリエイトやドロップシッピングも学べるお得な大学。

innc.japan-power.biz
カテゴリー: Android アプリ 関連 情報   パーマリンク