title: RecyclerView programmatically click - performClick
body: <p>i'm searching function that programmatically click method. so i found some method. 'performClick()'</p>
  
  <p>like that :</p>
  
  <pre><code>recyclerView.findViewHolderForAdapterPosition(position).itemView.performClick();
  </code></pre>
  
  <p>but it dosen't work in my case. I can't find solution. How do i use the performClick in Activity???</p>
  
  <p>my Adapter - ViewHolder:</p>
  
  <pre><code>public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
      private TextView virtNo;
      private TextView score01;
      private TextView score02;
      private TextView score03;
      private TextView totalScore;
      private LinearLayout linearLayout;
  
      public ViewHolder(View itemView) {
          super(itemView);
          this.virtNo = (TextView) itemView.findViewById(R.id.tv_virtNo);
          this.score01 = (TextView) itemView.findViewById(R.id.tv_score01);
          this.score02 = (TextView) itemView.findViewById(R.id.tv_score02);
          this.score03 = (TextView) itemView.findViewById(R.id.tv_score03);
          this.totalScore = (TextView) itemView.findViewById(R.id.tv_totalScore);
          this.linearLayout = (LinearLayout) itemView.findViewById(R.id.ll_item_score);
  
          virtNo.setOnClickListener(this);
          score01.setOnClickListener(this);
          score02.setOnClickListener(this);
          score03.setOnClickListener(this);
          score10.setOnClickListener(this);
      }
  
      @Override
      public void onClick(View v) {
          onClickListener.onClick(v, getAdapterPosition(), items.get(getAdapterPosition()));
      }
  }
  
  public void setOnClickListener(OnClickListener&lt;Score&gt; onClickListener) {
      this.onClickListener = onClickListener;
  }
  
  public interface OnClickListener&lt;T&gt; {
      void onClick(View v, int position, T item);
  }
  </code></pre>
  
  <p>my Adapter - onBindViewHolder</p>
  
  <pre><code> @Override
  public void onBindViewHolder(ViewHolder holder, int position) {
      Score item = items.get(position);
      holder.virtNo.setText(item.virtNo);
      holder.score01.setText(item.score01);
      holder.score02.setText(item.score02);
      holder.score03.setText(item.score03);
      holder.totalScore.setText(itemSum(item));
      }
  }
  </code></pre>