I´d like to loop the Views inside a HorizontallScrollView.
Example:
HorizontalScrollView holding 5 Views
When swiping through the Views the behaivior should be like this:
1 -> 2 -> 3 -> 4 -> 5 -> 1 -> 2 . . .
Or backwards:
1 <- 5 <- 4 <- 3 . . .
I am looking for a good way to acomplish that!
That is not likely to be practical with a
HorizontalScrollView. A properly-writtenPagerAdapter— one that returns a very high value forgetCount()and returns the same N views — might be able to pull this off withViewPager. I would not use either of the built-in fragment-basedPagerAdapterimplementations, as those may make some assumptions about the adapter’s behavior that your view recycling would violate.