title: No toast shown when item clicked RecyclerView
body: <p>Ok, I know, probably someone has already asked this question. I have already found a possible solution for my problem on <a href="https://stackoverflow.com/questions/28017547/recyclerview-onclick-position">this link</a>. But, for an unknown reason, that solution doesn't work for me. 
  I want to display a <code>Toast</code> when an item (a <code>CardView</code>) is clicked inside a <code>RecyclerView</code>. This <code>Toast</code> must show me the position of the item clicked.
  When I click on a <code>CardView</code> I see the ripple - so that means that the card is clicked - but unfortunately, I don't see any toast. Can someone explain me why? Thanks in advance.</p>
  
  <p>This is my Adapter:</p>
  
  <pre><code>public class MainRecyclerViewAdapter extends RecyclerView.Adapter&lt;MainRecyclerViewAdapter.MyMainViewHolder&gt; {
  
  
  private List&lt;Information&gt; mainInfo;
  MyDatabase myDatabase;
  
  
  public MainRecyclerViewAdapter(List&lt;Information&gt; mainInfo) {
      this.mainInfo = mainInfo;
  }
  
  public static class MyMainViewHolder extends RecyclerView.ViewHolder {
      TextView titleTextView, notesTextView, dateTextView, timeTextView;
      ImageView imageView;
      LinearLayout linearLayout;
  
      public MyMainViewHolder(View itemView) {
          super(itemView);
          linearLayout = (LinearLayout) itemView.findViewById(R.id.mainLayout);
          imageView = (ImageView) itemView.findViewById(R.id.imgIcon);
          titleTextView = (TextView) itemView.findViewById(R.id.title_TextView);
          notesTextView = (TextView) itemView.findViewById(R.id.notes_TextView);
          dateTextView = (TextView) itemView.findViewById(R.id.date_TextView);
          timeTextView = (TextView) itemView.findViewById(R.id.time_TextView);
  
          itemView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Toast.makeText(v.getContext(), "Position: " + Integer.toString(getAdapterPosition()), Toast.LENGTH_LONG).show();
              }
          });
  
      }
  
  }
  
  
  
  @Override
  public MyMainViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.main_single_raw, parent, false);
      MyMainViewHolder holder = new MyMainViewHolder(v);
      return holder;
  }
  
  public void delete(int position){
      mainInfo.remove(position);
      notifyItemRemoved(position);
  }
  
  @Override
  public void onBindViewHolder(final MyMainViewHolder holder, final int position) {
      holder.imageView.setImageResource(mainInfo.get(position).getICON_ID());
      holder.titleTextView.setText(mainInfo.get(position).getTITLE());
      holder.notesTextView.setText(mainInfo.get(position).getNOTES());
      holder.dateTextView.setText(mainInfo.get(position).getDATE());
      holder.timeTextView.setText(mainInfo.get(position).getTIME());
  
  
  }
  
  
  
  
  @Override
  public int getItemCount() {
      return mainInfo.size();
  }}
  </code></pre>
  
  <p>This is the layout file of my cardView:</p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/card_view1"
  android:clickable="true"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  card_view:cardCornerRadius="3dp"
  android:layout_margin="5dp"&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/mainLayout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="0.5dp"
      android:clickable="true"
      android:background="?android:selectableItemBackground"
      android:orientation="horizontal"
      android:weightSum="10"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
  
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="fill_parent"
              android:layout_marginLeft="16dp"
              android:layout_weight="8.5"&gt;
  
              &lt;TextView
                  android:id="@+id/title_TextView"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="5dp"
                  android:layout_marginLeft="0dp"
                  android:layout_marginRight="8dp"
                  android:layout_marginTop="5dp"
                  android:text="Title"
                  android:fontFamily="sans-serif-light"
                  android:textColor="#F57C00"
                  android:textSize="25sp"
                  /&gt;
  
  
  
          &lt;/RelativeLayout&gt;
  
          &lt;View
              android:layout_width="fill_parent"
              android:id="@+id/divider1"
              android:layout_height="0.1dp"
              android:layout_below="@+id/title_TextView"
              android:background="@android:color/darker_gray"/&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="fill_parent"
                  android:layout_marginLeft="16dp"
                  android:layout_weight="8.5"&gt;
  
                  &lt;ImageView
                      android:id="@+id/imgIcon"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentLeft="true"
                      android:layout_centerHorizontal="true"
                      android:layout_centerVertical="true"
                      android:src="@mipmap/ic_alarm_check_grey600_48dp" /&gt;
  
  
              &lt;/RelativeLayout&gt;
  
  
              &lt;LinearLayout
                  android:id="@+id/linear"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_weight="1.5"
                  android:orientation="vertical"&gt;
  
  
                  &lt;TextView
                      android:id="@+id/notes_TextView"
                      android:paddingTop="5dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="5dp"
                      android:layout_marginLeft="16dp"
                      android:layout_marginRight="8dp"
                      android:text="notes"
                      android:textColor="#ff565656"
                      android:textSize="12sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/date_TextView"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="5dp"
                      android:layout_marginLeft="16dp"
                      android:layout_marginRight="8dp"
                      android:text="date"
                      android:textColor="#ff565656"
                      android:textSize="12sp" /&gt;
  
                  &lt;TextView
                      android:id="@+id/time_TextView"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="5dp"
                      android:layout_marginLeft="16dp"
                      android:layout_marginRight="8dp"
                      android:text="time"
                      android:textColor="#ff565656"
                      android:textSize="12sp" /&gt;
  
  
              &lt;/LinearLayout&gt;
  
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>