code: private View inflateItemView(@Nullable final ViewGroup parent) {
          LayoutInflater layoutInflater = LayoutInflater.from(context);
          View view = layoutInflater
                  .inflate(style == Style.GRID ? R.layout.grid_item : R.layout.list_item, parent,
                          false);
          ItemViewHolder viewHolder = new ItemViewHolder();
          viewHolder.iconImageView = view.findViewById(android.R.id.icon);
          viewHolder.titleTextView = view.findViewById(android.R.id.title);
          view.setTag(viewHolder);
          return view;
      }
docs: Inflates the view, which is used to visualize an item.
  
  @param parent
  The parent of the view, which should be inflated, as an instance of the class {@link
  ViewGroup} or null, if no parent is available
  @return The view, which has been inflated, as an instance of the class {@link View}