开发者

How can I make a credit page like the credit page of "angry bird"?

开发者 https://www.devze.com 2023-03-12 22:07 出处:网络
I want to make a credit page. Therefore, a automatically rolling page is needed. I had tried the method of animation.

I want to make a credit page.

Therefore, a automatically rolling page is needed.

I had tried the method of animation.

TranslateAnimation am = new TranslateAnimation(0开发者_如何学Go, 0, 0, -(1884+342));
am.setDuration(30000);
am.setRepeatMode(Animation.RESTART);    
am.setRepeatCount(Animation.INFINITE);
containView.setAnimation(am);

However, the view can not be rolling by finger event if I register the onClick event.

Does it any way to make a credit page like angry birds?


What exactly is your problem ?

did you try doing something like

1) register anmation on your panel

2) register listener that stops the animation on click to allow the default behavior to run normally

3) on finger up you start an new animation form the ne point our at

0

精彩评论

暂无评论...
验证码 换一张
取 消