That means I want the view int the custom viewgroup can work like viewpager,but the different is the it can slide from the last to the first(while swipe right)or form the first to last(swipe left). I had try below way.
set the class implements PageAdapter 's getCount() method as follow:
return Integer.MAX_VALUE; something like https://stackoverflow.com/a/17424525/1872596 but then I get some bugs,where the device lock and unlocked minutes later, ANR occurs.
- Custom the viewpager source code ,but failed.It is too hard for a freashman to read about 4000 lines source code.
I hope any one can help me,Thanks a lot.