Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question