简体   繁体   中英

Control ViewFlipping in Android Widget

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?

您是否尝试过在视图stopFlipping()上调用stopFlipping()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM