private void updateUI(View view) {
   recyclerView = (RecyclerView) view.findViewById(R.id.rv_augur);
   recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()));
   // 子布局装饰
   recyclerView.addItemDecoration(
       new DividerItemDecoration(getContext(), LinearLayoutManager.VERTICAL));
   mAdapter = new AugurAdapter(mycontext, this);
   mAdapter.setMdatas(datas);
   recyclerView.setAdapter(mAdapter);
   // 滑动加载更多的layout
   mSwipeLayout = (VerticalSwipeRefreshLayout) view.findViewById(R.id.swipe_container);
   mSwipeLayout.setColorSchemeResources(
       android.R.color.holo_blue_bright,
       android.R.color.holo_blue_bright,
       android.R.color.holo_blue_bright,
       android.R.color.holo_blue_bright);
   // 需要实现方法
   mSwipeLayout.setOnRefreshListener(this);
   onRefresh();
 }
 // 点击item的跳转逻辑
 @Override
 public void onItemClicked(int position) {
   List<Augur> list = mAdapter.getMdatas();
   if (list != null && list.size() > 0) {
     // 如果没有创建房间则不能跳转
     final Augur bean = list.get(position);
     roomID1 = bean.getRoomID1();
     roomID2 = bean.getRoomID2();
     AUGURID = bean.getObjectId();
     mycontext.log(roomID1 + "  1加入的公开群" + roomID2 + " 2加入的公开群" + "augurId:" + AUGURID);
     // 进入到群组
     new Thread(
             new Runnable() {
               @Override
               public void run() {
                 try {
                   EMGroupManager.getInstance().joinGroup(roomID1); // 需异步处理
                   EMGroupManager.getInstance().joinGroup(roomID2); // 需异步处理
                   EMChat.getInstance().setAppInited();
                 } catch (EaseMobException e) {
                   e.printStackTrace();
                 }
               }
             })
         .start();
     Intent intent = new Intent(getActivity(), ChatContainerActivity.class);
     Log.e("datas", "bean.getGroupId()" + roomID1 + "1  ,  2   " + roomID2);
     Bundle bundle = new Bundle();
     bundle.putString("roomID1", roomID1);
     bundle.putString("roomID2", roomID2);
     bundle.putString("chatType", ChatContainerActivity.CHATTYPE_GROUP + "");
     bundle.putString("AUGURID", AUGURID);
     intent.putExtra("bundle", bundle);
     startActivity(intent);
   }
 }