title: Onclicklistener not working on recyclerview
body: <p>I am working with recyclerview the same code given below was working fine for me but
  I have tried following code but it is not working</p>
  
  <pre><code>recyclerView = (RecyclerView)v.findViewById(R.id.datelist);
      recyclerView.setClickable(true);
      recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
      recyclerView.setAdapter(adapter);
      adapter.setOnItemClickListener(this);
  </code></pre>
  
  <p>in the Adapter</p>
  
  <pre><code>public  class UpdateHolder extends RecyclerView.ViewHolder
              implements View
              .OnClickListener,CompoundButton.OnCheckedChangeListener {
          TextView uname;
          TextView uversn;
          TextView usitting;
  
  
          public UpdateHolder(View itemView) {
              super(itemView);
              uname = (TextView) itemView.findViewById(R.id.update_name);
              uversn = (TextView) itemView.findViewById(R.id.update_version);
              usitting=(TextView) itemView.findViewById(R.id.sitting_type);
  
              Log.i(LOG_TAG, "Adding Listener");
              itemView.setOnClickListener(this);
          }
  
          @Override
          public void onClick(View v) {
  
              myClickListener.onItemClick(getPosition(), v);
          }
  }
  public void setOnItemClickListener(MyClickListener myClickListener) {
          this.myClickListener = myClickListener;
      }
  </code></pre>
  
  <p>I have also tried the in Adapter in onCreateViewHolder</p>
  
  <p>Please help me out</p>