@Test public void testRemovePageView() throws Exception { testAddPageView(); adapter.removePageView(child); assertEquals(adapter.getRealCount(),2); }
public void removePageView(View view) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.d("onPageSelected >>>> removePageView"); } views.remove(view); ensureShadow(); }
WXCirclePageAdapter extends PagerAdapter { public void removePageView(View view) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.d("onPageSelected >>>> removePageView"); } views.remove(view); ensureShadow(); } }
WXCirclePageAdapter extends PagerAdapter { public void removePageView(View view) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.d("onPageSelected >>>> removePageView"); } views.remove(view); ensureShadow(); } WXCirclePageAdapter(List<View> views, boolean needLoop);  WXCirclePageAdapter();  WXCirclePageAdapter(boolean needLoop); }
WXCirclePageAdapter extends PagerAdapter { public void removePageView(View view) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.d("onPageSelected >>>> removePageView"); } views.remove(view); ensureShadow(); } WXCirclePageAdapter(List<View> views, boolean needLoop);  WXCirclePageAdapter();  WXCirclePageAdapter(boolean needLoop); void addPageView(View view); void removePageView(View view); void replacePageView(View oldView, View newView); @Override int getCount(); int getRealCount(); @Override Object instantiateItem(ViewGroup container, int position); @Override void destroyItem(ViewGroup container, int position, Object object); @Override boolean isViewFromObject(View view, Object object); @Override int getItemPosition(Object object); int getPagePosition(View page); int getItemIndex(Object object); List<View> getViews(); int getRealPosition(int shadowPosition); int getFirst(); }
WXCirclePageAdapter extends PagerAdapter { public void removePageView(View view) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.d("onPageSelected >>>> removePageView"); } views.remove(view); ensureShadow(); } WXCirclePageAdapter(List<View> views, boolean needLoop);  WXCirclePageAdapter();  WXCirclePageAdapter(boolean needLoop); void addPageView(View view); void removePageView(View view); void replacePageView(View oldView, View newView); @Override int getCount(); int getRealCount(); @Override Object instantiateItem(ViewGroup container, int position); @Override void destroyItem(ViewGroup container, int position, Object object); @Override boolean isViewFromObject(View view, Object object); @Override int getItemPosition(Object object); int getPagePosition(View page); int getItemIndex(Object object); List<View> getViews(); int getRealPosition(int shadowPosition); int getFirst();  }