title: how to set itemTouchHelper swipe selectively?
body: <p>so i have implemented this itemtouchhelper.simple callback on a recyclerview rv.</p>
  
  <p>now in this rv i have set 2 kinds on layout as a row depending on the content type.</p>
  
  <p>so as i set this touchhelper on the rv it is being implemented on both of these layouts even though i did'nt want to do that.i only want to apply that swipe to only one type of this layout.</p>
  
  <pre><code>ItemTouchHelper.SimpleCallback ith = new ItemTouchHelper.SimpleCallback(0,ItemTouchHelper.RIGHT) {
          @Override
          public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder viewHolder1) {
              return false;
          }
  
          @Override
          public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int i) {
              if(viewHolder.itemView.findViewById(R.id.messageholder_from) != null)
              {
                  Log.d("texts", "onSwiped: "+viewHolder.itemView.findViewById(R.id.messageholder_from).findViewById(R.id.crfrom));
              }
              adapter.notifyDataSetChanged();
          }
      };
      new ItemTouchHelper(ith).attachToRecyclerView(rv);
  </code></pre>
  
  <p>as you can see this code i only want to implement the swipe on the row which has this messageholder_from child in it otherwise i don't want to implement the swipe.</p>
  
  <p>is there any way to remove the swipe animation and the listener on this other  child messageholder_to.</p>
  
  <p>my app shows either a to_layout or a from_layout depending on he message id.</p>
  
  <p>thanks for any kind of help.</p>