开发者

Efficient way to present and frequently change images on android app?

开发者 https://www.devze.com 2023-02-15 17:59 出处:网络
I have several imageViews in a layout. Frequently, (5-10 sec) I want to have some of the images change (use another source).

I have several imageViews in a layout. Frequently, (5-10 sec) I want to have some of the images change (use another source).

Since I am only a 开发者_StackOverflow中文版beginner with android, energy-wise does using an imageView makes sense for my purpose?

Is there a more a efficient way, to present several images that are going to change frequently?

Thank you in advance!


ImageView makes perfect sense!


Well in that case I recommend to go with a TimerTask and in that task get the instance of the ImageView and call the setImageDrawable()


You can also use the ViewFlipper class to animate between different ImageViews at a specified interval.

0

精彩评论

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