简体   繁体   中英

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

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 other 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.

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