开发者

how to handle multiple full screen images in android. : Memory concern

开发者 https://www.devze.com 2023-03-18 19:03 出处:网络
I need to handle around 120 images and 120 audio files in my project.i placed all images in drawable and audio files in raw folder, Images should change by clicking button or fling gesture and same ti

I need to handle around 120 images and 120 audio files in my project.i placed all images in drawable and audio files in raw folder, Images should change by clicking button or fling gesture and same time corresponding short audio file should play.

Which of the following is the right way to handle images?

1.Can i use imageview to show the image and change its src each time

2.Can i use imageSwitcher

3.or any 开发者_如何学Pythonother technique?

And

What about memory(To handle 120 images and audio files)?


Why cant you try ViewFlipper. You can even add gesture detection to it. It will satisfy what you are looking for.

0

精彩评论

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