R
R
rockdev2015-10-03 16:36:05
Android
rockdev, 2015-10-03 16:36:05

How to organize an infinite ViewPager with image loading?

The application needs to implement image viewing using ViewPager. At the same time, there can be a lot of pictures and it should be possible to return to the previous ones.
1) How to implement infinite ViewPager?
2) Does it make sense to look for ready-made solutions or would it be better to implement everything yourself?
3) What is the best way to organize the loading of images in advance so that everything is as smooth as possible? Can I use ready-made solutions like Picasso in this situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Gamega, 2015-10-03
@gadfi

I will add only two things to what Alexander Varakosov
said: 1) if you want smoothness with picasso, use fetch ()
2) if you upload pictures from the net, or at least somehow you can influence them ... DO NOT UPLOAD PICTURES IN REAL SIZE !!!!

A
Alexander Varakosov, 2015-10-03
@thelongrunsmoke

1) The idea is usually to rearrange the fragments in places.
2) https://github.com/antonyt/InfiniteViewPager works more or less decently.
3) Picasso is fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question