How to set a long click listener on a MenuItem (on a NavigationView)?
<p>How can I set a long click listener on a <code>MenuItem</code>? </p>

<p>I tried <a href="https://stackoverflow.com/a/32866396/4583267">this answer</a>, but the method doesn't exist for me. Any solutions?</p>

<p>Code: </p>

<pre><code>Menu menu = navigationView.getMenu();
MenuItem menuItem = menu.findItem(R.id.menu_item);

// TODO set a long click listener on the menuItem.
menuItem.setOnLongClickListener(...); // Method does not exist, any other solutions?
</code></pre>

<p><strong>Edit:</strong> I don't want to set a custom ActionView, I want the long click listener to the whole <code>MenuItem</code>, without a custom View.</p>