class WXCirclePageAdapter extends PagerAdapter {

  @Override
  public Object instantiateItem(ViewGroup container, int position) {
    View pageView = null;
    try {
      pageView = shadow.get(position);
      if (WXEnvironment.isApkDebugable()) {
        WXLogUtils.d("onPageSelected >>>> instantiateItem >>>>> position:" + position + ",position % getRealCount()" + position % getRealCount());
      }
      if (pageView.getParent() == null) {
        container.addView(pageView);
      } else {
        ((ViewGroup) pageView.getParent()).removeView(pageView);
        container.addView(pageView);
      }
    } catch (Exception e) {
      WXLogUtils.e("[CirclePageAdapter] instantiateItem: ", e);
    }
    return pageView;
  }

  public  WXCirclePageAdapter(List<View> views, boolean needLoop);
  public  WXCirclePageAdapter();
  public  WXCirclePageAdapter(boolean needLoop);

}