title: How to start new intent for different CardView items?
body: <p>I have an <code>RecyclerView Adapter</code></p>
  
  <pre><code>public class CardViewDataMainAdapter extends RecyclerView.Adapter&lt;CardViewDataMainAdapter.ViewHolder&gt; {
          public String[] mColorData;
  
          public CardViewDataMainAdapter(String[] colorData) {
              mColorData = colorData;
          }
  
          @Override
          public CardViewDataMainAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
              View itemLayoutView = LayoutInflater.from(parent.getContext()).inflate(R.layout.cardview_row, null);
              ViewHolder viewHolder = new ViewHolder(itemLayoutView);
              return viewHolder;
          }
  
          @Override
          public void onBindViewHolder(ViewHolder viewHolder, int position) {
  
              viewHolder.card_text.setText(mColorData[position].toString());
  
          }
  
          @Override
          public int getItemCount() {
              return mColorData.length;
          }
  
          public static class ViewHolder extends RecyclerView.ViewHolder {
  
              public TextView card_text;
  
              public ViewHolder(View itemLayoutView) {
                  super(itemLayoutView);
                  card_text = (TextView) itemLayoutView.findViewById(R.id.info_text);
              }
  
              @Override
              public void onClick(View v) {
              }
          }
      }
  </code></pre>
  
  <p>And I have a <code>String Array</code> which defines the data for the cards.
  There are around 20 card items and I want to start new <code>intents</code> which start another <code>RecyclerView</code> activities for every elements using either <code>if else</code> loop or <code>switch case</code> loop</p>
  
  <p>I've tried searching how to implement <code>OnClickListener</code> for <code>RecyclerView</code> but every solution either starts the same intent for all the Card items, or gives some or the other error</p>
  
  <p><em>I can post my entire project if needed.</em></p>
  
  <p><a href="http://i.stack.imgur.com/POcqA.jpg" rel="nofollow">http://i.stack.imgur.com/POcqA.jpg</a></p>