title: Firebase UI RecyclerView onClick
body: <p>I am using Firebase UI FirebaseRecyclerAdapter to populate a RecyclerView. I managed to get click events from components of my item view (the title), but not for anywhere in the item view, which is what I need. I followed google sample.</p>
  
  <p>In my Activity:</p>
  
  <pre><code>private void setRecyclerView() {
      recyclerView = (RecyclerView) findViewById(R.id.recycler_view_gigs);
      recyclerView.setHasFixedSize(true);
      recyclerView.setLayoutManager(new LinearLayoutManager(this));
      mAdapter = new FirebaseRecyclerAdapter&lt;Gig, GigViewHolder&gt;(Gig.class,
              R.layout.list_item_card,
              GigViewHolder.class,
              reference) {
          @Override
          protected void populateViewHolder(final GigViewHolder viewGig, Gig model, final int position) {
  
              viewGig.itemView.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      Log.i(Utils.TAG, "onItemClickGeneral: position " + position);
                      // this doesn't work
                  }
              });
              viewGig.bindToGig(model, new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      Log.i(Utils.TAG, "onItemClickTitle: position " + position);
                      // this works
                  }
              });
          }
      };
      recyclerView.setAdapter(mAdapter);
  }
  </code></pre>
  
  <p>and my ViewHolderClass:</p>
  
  <pre><code>public class GigViewHolder extends RecyclerView.ViewHolder {
  
  ImageView ivIconArtist;
  TextView tvArtist;
  TextView tvVenue;
  TextView tvDate;
  
  public GigViewHolder(View view) {
      super(view);
      ivIconArtist = (ImageView) view.findViewById(R.id.iv_list_item_icon_artist);
      tvArtist = (TextView) view.findViewById(R.id.tv_list_item_artist);
      tvVenue = (TextView) view.findViewById(R.id.tv_list_item_venue);
      tvDate = (TextView) view.findViewById(R.id.tv_list_item_date);
  }
  
  public void bindToGig(Gig gig, View.OnClickListener clickListener) {
      tvArtist.setText(gig.getArtist());
      tvVenue.setText(gig.getVenue());
      tvDate.setText(gig.getDate());
  
      tvArtist.setOnClickListener(clickListener);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I tried the custom onclicklistener + interface suggested in other answers, no luck either.</p>