InfiniteViewPager - Code refactoring and modify examples.

Code refactoring and modify examples.