开发者

Control ViewFlipping in Android Widget

开发者 https://www.devze.com 2023-04-01 01:24 出处:网络
Here is what I have to do: I want to create a widget which plays a short video clip. So, what I did is, to do screenshots of the movies and get a series of screenshots of it and switch the image in a

Here is what I have to do:

I want to create a widget which plays a short video clip. So, what I did is, to do screenshots of the movies and get a series of screenshots of it and switch the image in a certain frame rate to achieve what I want.

In here, I used ViewFlipper and a number of ImageView under it. But the problem comes.

I have no idea how to set ViewFlipper to flip through all the ImageView once and 开发者_运维百科stop at the last one. I tried to set it as AutoStart true and set it back to false after a certain time (using Handler) but it doesnt work.

can anyone help?


Have you tried calling stopFlipping() on view flipper?

0

精彩评论

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