private void getListView() {
   adapter.notifyDataSetChanged();
   if (circleBar.isShowing()) {
     circleBar.dismiss();
   }
   refreshLayout.setRefreshing(false);
   progressBar_bottom.setVisibility(View.GONE);
 }
 @Override
 public void handleMessage(Message msg) {
   switch (msg.what) {
     case 0:
       viewPager.setCurrentItem(viewPager.getCurrentItem() + 1);
       break;
     case 1:
       getViewpager();
       custemViewPagerAdapter.notifyDataSetChanged();
       adapter.notifyDataSetChanged();
       if (circleBar.isShowing()) {
         circleBar.dismiss();
       }
       startViewPager();
       break;
   }
 }
  private void initView(LayoutInflater inflater) {
    layView = inflater.inflate(R.layout.fragment_main, null);
    mRecyclerView = (CustomRecyclerView) layView.findViewById(R.id.main_recycler_view);
    //        layoutManager = new StaggeredGridLayoutManager(2,
    // StaggeredGridLayoutManager.VERTICAL);
    layoutManager =
        new CustomStaggeredGridLayoutManager(2, CustomStaggeredGridLayoutManager.VERTICAL);
    mRecyclerView.setLayoutManager(layoutManager);

    refreshLayout = (SwipeRefreshLayout) layView.findViewById(R.id.swipe_container);
    progressBar_bottom =
        (ProgressBarIndeterminate) layView.findViewById(R.id.main_progressBar_bottom);
    headView = inflater.inflate(R.layout.recycler_headview, null);
    viewPager = (ViewPager) headView.findViewById(R.id.activity_main_custemviewpager);
    pointLayout = (LinearLayout) headView.findViewById(R.id.mainpager_pointcontainer);
    circleBar = CircleDialogProgressBar.createCircleDialogProgressBar(getActivity());
    circleBar.show();
  }