How many Views are possible in a view flipper in android?

前端 未结 2 1374
天涯浪人
天涯浪人 2021-01-22 02:32

I am developing an application in android in which i want to show about 170 images, but i want user can view images by finger either right or left . After searching from interne

相关标签:
2条回答
  • 2021-01-22 03:11

    The view flipper has not such limitations. Probably the issue is that you're loading in memory all those images. Try to avoid to have more than 2 or 3 images in memory at any given time or you'll run out of RAM

    0 讨论(0)
  • 2021-01-22 03:14

    I suggest you to use Gallery (Gallery tutorial), ViewFlipper will load complete view in memory, so when you load more images it will take more memory and there is good chance for OutOfMemoryError.
    For displaying Images Gallery is the best choice

    0 讨论(0)
提交回复
热议问题