Android: making gallery infinite loop of images

前端 未结 3 591
天命终不由人
天命终不由人 2021-01-07 14:32

I\'m using a gallery in my project in which I have added four images and I want it to be infinite from both right side and left side. How do I accomplish this?

3条回答
  •  日久生厌
    2021-01-07 15:01

    My first guess is to change adapter data, i.e. if you detect that you are on the "right edge", then get your first image and add it to the end, then take second image and so on...

提交回复
热议问题