title: Option menu in recycler view adapter
body: <p>I would like to like to ask you how I call a method in activity from adapter recycler view.</p>
  
  <p><a href="https://i.stack.imgur.com/0kazA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0kazA.png" alt="enter image description here"></a></p>
  
  <p>In function buildRecyclerView there is set up the adapter:</p>
  
  <pre><code>private void buildRecyclerView() {
    offerAdapter = new OfferAdapter();
    recyclerView.setAdapter(offerAdapter);
  }
  </code></pre>
  
  <p>In class <em><code>OfferAdapter.java</code></em> there is created submenu for each item and with <em><code>onMenuItemClickListener</code></em>:</p>
  
  <pre><code>@Override
  public void onBindViewHolder(NoteHolder holder, int position) {
  PopupMenu popup = new PopupMenu(mCtx, holder.button);
  popup.inflate(R.menu.menu);
  popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
    // TODO here I want to call delete item in MyOfferFragment.java
  }
  </code></pre>
  
  <p>The main question: How I can call from <code>*onMenuItemClickListnere*</code> the function in <code>*MyOfferFragment*</code>.</p>
  
  <p>Thank you very much in advance</p>