N
N
Nikita Dergachov2017-02-15 00:44:36
Android
Nikita Dergachov, 2017-02-15 00:44:36

How to create an infinite ViewPager?

How to create an infinite ViewPager that will display the date, when you go to the next page, it should show either the current or the previous date.
That is, at startup it shows the current date, when you swipe to the left it will be the next day, to the right, respectively, the previous day.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Chvarkov, 2017-02-15
@KuSu

https://github.com/antonyt/InfiniteViewPager

D
Denis Zagaevsky, 2017-02-15
@zagayevskiy

Set MAX_INT to the number of pages and return the corresponding view from the adapter. It seems nothing complicated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question