예제 #1
0
 private SliderAdapter getRealAdapter() {
   PagerAdapter adapter = mViewPager.getAdapter();
   if (adapter != null) {
     return ((InfinitePagerAdapter) adapter).getRealAdapter();
   }
   return null;
 }
예제 #2
0
 private InfinitePagerAdapter getWrapperAdapter() {
   PagerAdapter adapter = mViewPager.getAdapter();
   if (adapter != null) {
     return (InfinitePagerAdapter) adapter;
   } else {
     return null;
   }
 }