title: Edit and delete the item from recyclerview on swipe?
body: <p>Iam trying to edit and delete items in recyclerview.
  When I swipe recyclerview I should get 2 buttons. One is for editing the data and the other buttonis for deleting the data from recyclerview. </p>
  
  <pre><code>public class Bills_Adapter extends RecyclerView.Adapter&lt;Bills_Adapter.BillHolder&gt; implements Filterable
  {
  
      Context context;
      List&lt;Manager_Bill_Model&gt; bill_lists;
  
      public Bills_Adapter(Context context, List&lt;Manager_Bill_Model&gt; bill_lists)
      {
          this.context = context;
          this.bill_lists = bill_lists;
      }
  
      @Override
      public BillHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i)
      {
          View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_bills, viewGroup, false);
          BillHolder billHolder = new BillHolder(v);
          return billHolder;
      }
  
      @Override
      public void onBindViewHolder(@NonNull BillHolder billHolder, int i)
      {
          billHolder.tview_billNumber.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v)
              {
                  final Dialog dialog = new Dialog(context);
                  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
                  dialog.setContentView(R.layout.activity_bill_dialog);
                  dialog.getWindow().setLayout(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
                  dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
                  dialog.show();
  
              }
          });
  
      }
  
      @Override
      public int getItemCount() {
          return 50;
      }
  
      @Override
      public Filter getFilter() {
          return null;
      }
  
      public class BillHolder extends RecyclerView.ViewHolder
      {
          TextView tview_billNumber;
  
          public BillHolder(@NonNull View itemView)
          {
              super(itemView);
              tview_billNumber = itemView.findViewById(R.id.tview_billNumber);
          }
      }
  }
  </code></pre>