I want that my pop up menu appear next to the clicked row. Look at the picture after I click the "..." button: http://postimg.org/image/s35znsaq3/
This is my code for the Pop Up Menu:
private void showPopUpMenu(final User user) {
View menuItemView = findViewById(R.id.moreActions);
PopupMenu popUpMenu = new PopupMenu(ContactsListActivity.this, menuItemView);
popUpMenu.getMenuInflater().inflate(R.menu.pop_up_menu, popUpMenu.getMenu());
// Hide buttons for missing user's information
Menu menu = popUpMenu.getMenu();
if(user.getSkype().equals(""))
menu.findItem(R.id.action_skype).setVisible(false);
if(user.getFacebook().equals(""))
menu.findItem(R.id.action_facebook).setVisible(false);
if(user.getEmail().equals(""))
menu.findItem(R.id.action_email).setVisible(false);
