code: private View createView(LayoutInflater inflater, @Nullable View headerView, boolean fixedHeader,
                            @Nullable View footerView, boolean fixedFooter, BaseAdapter adapter) {
      View view = holder.getView(inflater, rootView);
  
      if (holder instanceof ViewHolder) {
        assignClickListenerRecursively(view);
      }
  
      if (headerView != null) {
        assignClickListenerRecursively(headerView);
        holder.addHeader(headerView, fixedHeader);
      }
  
      if (footerView != null) {
        assignClickListenerRecursively(footerView);
        holder.addFooter(footerView, fixedFooter);
      }
  
      if (adapter != null && holder instanceof HolderAdapter) {
        HolderAdapter holderAdapter = (HolderAdapter) holder;
        holderAdapter.setAdapter(adapter);
        holderAdapter.setOnItemClickListener(new OnHolderListener() {
          @Override public void onItemClick(@NonNull Object item, @NonNull View view, int position) {
            if (onItemClickListener == null) {
              return;
            }
            onItemClickListener.onItemClick(DialogPlus.this, item, view, position);
          }
        });
      }
      return view;
    }
docs: it is called when the content view is created
  
  @param inflater used to inflate the content of the dialog
  @return any view which is passed