title: clear selections from recyclerView
body: <p>i have <code>RecyclerView</code> with <code>longClick</code> and <code>click</code> method for every item,selecting item starts with a <code>longClick</code> and then single click allow user to select and as you see the background color of selected item will change,now i need one more things,when user pressed back Button i want to clear this selections and also background change to transparent,here is <code>RecycleViewAdapter</code></p>
  
  <pre><code>public class Channel_Show_Adapter extends RecyclerView.Adapter&lt;Channel_Show_Adapter.ViewHolder&gt; {
  
  
  private Context mContext;
  private ArrayList&lt;Channel_Show_Model&gt; Data_1;
  private static String TAG = "val";
  public onLongClickInterface longClick;
  public onClickInterface shortClick;
  private boolean longClickDone;
  private boolean shortClickActivated=false;
  
  
  public Channel_Show_Adapter(Context mContext, ArrayList&lt;Channel_Show_Model&gt; data, onLongClickInterface click1, onClickInterface click2) {
      this.mContext = mContext;
      this.Data_1 = data;
      this.longClick = click1;
      this.shortClick = click2;
  }
  
  
  public class ViewHolder extends RecyclerView.ViewHolder implements View.OnLongClickListener, View.OnClickListener {
  
  
      AppCompatImageView image;
      TextView title, text, date, user;
      RelativeLayout singlePostLayout;
  
  
  
      public ViewHolder(View itemView) {
          super(itemView);
  
          image = (AppCompatImageView) itemView.findViewById(R.id.ch_msg_image);
          title = (TextView) itemView.findViewById(R.id.ch_msg_title);
          text = (TextView) itemView.findViewById(R.id.ch_msg_message);
          date = (TextView) itemView.findViewById(R.id.ch_msg_date);
          user = (TextView) itemView.findViewById(R.id.ch_msg_user);
          singlePostLayout = (RelativeLayout) itemView.findViewById(R.id.channel_single_post_layout);
  
  
          itemView.setOnLongClickListener(this);
          itemView.setOnClickListener(this);
      }
  
  
  
      @Override
      public boolean onLongClick(View v) {
          if(!shortClickActivated) {
              singlePostLayout.setBackgroundColor(mContext.getResources().getColor(R.color.blueTransparent));
              longClick.posClickedLong((short) getAdapterPosition());
              longClickDone = true;
              shortClickActivated=true;
          }
          return true;
      }
  
      @Override
      public void onClick(View v) {
  
          if(longClickDone) {
              singlePostLayout.setBackgroundColor(mContext.getResources().getColor(R.color.blueTransparent));
              shortClick.posClickedShort((short) getAdapterPosition());
              shortClickActivated=true;
          }
      }
  }
  
  @Override
  public Channel_Show_Adapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View view = LayoutInflater.from(mContext).inflate(R.layout.channel_show_recycler, parent, false);
      return new Channel_Show_Adapter.ViewHolder(view);
  }
  
  @Override
  public void onBindViewHolder(final Channel_Show_Adapter.ViewHolder holder, int position) {
  
      holder.title.setText(Data_1.get(position).getTitle());
      holder.text.setText(Data_1.get(position).getMessage());
      holder.date.setText(Data_1.get(position).getDate());
  
      if (Application_Class.userDataArray.get(0).isSuperAdmin() || Application_Class.userDataArray.get(0).isAdmin()) {
          holder.user.setText(Data_1.get(position).getUser());
      } else {
          holder.user.setText("");
      }
      Picasso.get().load(Data_1.get(position).getImage().getUrl()).noFade().into(holder.image);
  
  
  }
  
  @Override
  public int getItemCount() {
      return Data_1.size();
  }
  
  interface onLongClickInterface{void posClickedLong(short p);}
  interface onClickInterface{void posClickedShort(short p);}
  }
  </code></pre>
  
  <p>and Activity</p>
  
  <pre><code>   @Override
  public void posClickedLong(short p) {
  
      longClickOk=true;
      itemsTempArray.add(data.get(p).getId());
  
  }
  @Override
  public void posClickedShort(short p) {
  
      itemsTempArray.add(data.get(p).getId());
  
  
  }
  
  @Override
  public void onBackPressed() {
  
      backPressed=true;
      if(longClickOk &amp;&amp; itemsTempArray.size()&gt;0){
          longClickOk=false;
          for (int i = 0; i &lt; itemsTempArray.size(); i++)
                  itemsTempArray.remove(i);
  
      }else{
          super.onBackPressed();
      }
  
  }
  </code></pre>