title: How to deselect all other's positions value on recycler view item click?
body: <p>I have written following code to change background of selected item from recyclerview click :</p>
  
  <pre><code> @Override
      public void onBindViewHolder(final ProductAdapter.CardViewHolder cardViewHolder, final int position) {
  
          final Product product = mProduct.get(position);
  
          cardViewHolder.pName.setText(product.getName());
  
          cardViewHolder.cardProduct.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  product.setSelected(!product.isSelected());
                  cardViewHolder.view.setBackgroundColor(product.isSelected() ? getContext().getResources().getColor(R.color.blue) : Color.red);
              }
          });
  
      }
  </code></pre>
  
  <p>Now this is working. When i click on recycler view item then its change background color but i want like When i click on any particular item from recyclerview then all other item must be deselect and change their background to red.</p>
  
  <p>I just want to give sing selection option.</p>
  
  <p>How can i do this ?</p>