title: How to disable swipe Right in recylerview?
body: <p>I have an app which contain recyclerview with adapter which populate some data in recyclerview.When i swipe left it delete item at that position. But problem is that i don't want swipe right i only want swipe left. How do i do that</p>
  
  <p>code:-</p>
  
  <pre><code> ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) {
  
          @Override
          public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {
              return false;
          }
  
          @Override
          public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {
              int position = viewHolder.getAdapterPosition();
  
              if (direction == ItemTouchHelper.LEFT){
                  adapter.removeItem(position);
              }
          }
  
          @Override
          public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {
  
              Bitmap icon;
              if(actionState == ItemTouchHelper.ACTION_STATE_SWIPE){
  
                  View itemView = viewHolder.itemView;
                  float height = (float) itemView.getBottom() - (float) itemView.getTop();
                  float width = height / 3;
  
                  if(dX &lt; 0){
                      p.setColor(Color.parseColor("#D32F2F"));
                      RectF background = new RectF((float) itemView.getRight() + dX, (float) itemView.getTop(),(float) itemView.getRight(), (float) itemView.getBottom());
                      c.drawRect(background,p);
                      icon = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_delete);
                      RectF icon_dest = new RectF((float) itemView.getRight() - 2*width ,(float) itemView.getTop() + width,(float) itemView.getRight() - width,(float)itemView.getBottom() - width);
                      c.drawBitmap(icon,null,icon_dest,p);
                  }
              }
              super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive);
          }
      };
      ItemTouchHelper itemTouchHelper = new ItemTouchHelper(simpleItemTouchCallback);
      itemTouchHelper.attachToRecyclerView(notificationList);
  </code></pre>