Android - Long Click on RecyclerView item and ContextMenu
What you need there is to show Dialog with list inside. Like that:
itemView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
final CharSequence[] items = {"Supprimer", "etc", "etc1"};
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setTitle("Select The Action");
builder.setItems(items, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int item) {
}
});
builder.show();
return true;
}
});