code: private void initializeGridView() {
      tvShowsGridView.setAdapter(adapter);
      tvShowsGridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override public void onItemClick(AdapterView<?> adapterView, View view, int position,
            long id) {
          TvShowViewModel tvShow = adapter.getItem(position);
          tvShowSelected = tvShow;
          Picasso.with(getBaseContext())
              .load(tvShow.getFanArt())
              .placeholder(R.drawable.tv_show_placeholder)
              .into(fanArtImageView);
          renderEpisodesHeader(tvShow);
          renderEpisodes(tvShow);
          draggableView.setVisibility(View.VISIBLE);
          draggableView.maximize();
        }
      });
    }
docs: Initialize GridView with some injected data and configure OnItemClickListener.