**UPDATED:**

I have download the data from FireStore & set adapter. Then shows the data in a RecyclerView.

My question is: If I want to delete any of the item in the RecyclerView from clicking the button which is outside the RecyclerView, how can I do?

Steps Example:

1. Get data from Firestore (Done)
[example pic](https://i.stack.imgur.com/ocA9e.png)
2. Click "Edit" button then the "Delete Icon button" show in every item
[example pic](https://i.stack.imgur.com/7jEs5.png)
3. Click "Delete Icon button" then the item is deleted.

**Layout**

```
    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#F8F8F8">

    <TextView
        android:id="@+id/editBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:layout_marginEnd="16dp"
        android:text="edit"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <RecyclerView xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/recyclerView"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginTop="16dp"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"/>
    </android.support.constraint.ConstraintLayout>

```