code: private RecyclerView createRecyclerView() {
          RecyclerView recyclerView = new RecyclerView(getContext());
          RecyclerView.LayoutParams params = new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
                  ViewGroup.LayoutParams.MATCH_PARENT);
          recyclerView.setLayoutParams(params);
          setContentView(recyclerView);
          return recyclerView;
      }
docs: Create the RecyclerView and set it as the dialog view.
  
  @return the created RecyclerView