コード例 #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;
   }
 }