@Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

    rootView = inflater.inflate(R.layout.home_dap_issuer_community_fragment, container, false);
    //        initViews(rootView);

    recyclerView = (RecyclerView) rootView.findViewById(R.id.gridView);
    recyclerView.setHasFixedSize(true);
    layoutManager = new GridLayoutManager(getActivity(), 3, LinearLayoutManager.VERTICAL, false);
    recyclerView.setLayoutManager(layoutManager);
    adapter = new IssuerCommunityAdapter(getActivity());
    adapter.setAdapterChangeListener(
        new AdapterChangeListener<ActorIssuer>() {
          @Override
          public void onDataSetChanged(List<ActorIssuer> dataSet) {
            actors = dataSet;
          }
        });
    recyclerView.setAdapter(adapter);
    swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipe);
    swipeRefreshLayout.setOnRefreshListener(this);
    swipeRefreshLayout.setColorSchemeColors(Color.BLUE, Color.BLUE);

    rootView.setBackgroundColor(Color.parseColor("#000b12"));
    emptyView = (LinearLayout) rootView.findViewById(R.id.empty_view);
    swipeRefreshLayout.setRefreshing(true);
    onRefresh();

    return rootView;
  }
 public void showEmpty(boolean show, View emptyView) {
   Animation anim =
       AnimationUtils.loadAnimation(
           getActivity(), show ? android.R.anim.fade_in : android.R.anim.fade_out);
   if (show
       && (emptyView.getVisibility() == View.GONE
           || emptyView.getVisibility() == View.INVISIBLE)) {
     emptyView.setAnimation(anim);
     emptyView.setVisibility(View.VISIBLE);
     if (adapter != null) adapter.changeDataSet(null);
   } else if (!show && emptyView.getVisibility() == View.VISIBLE) {
     emptyView.setAnimation(anim);
     emptyView.setVisibility(View.GONE);
   }
 }