Popup menu comes out in left bottom
问题 I am trying to implement popup menu in my fragment but the result is far beyond my desire. I have a button on the action bar and one of these buttons call the popup menu and no problem till here. It successfully calls and I can see the popup menu. Here is how I do that. In fragment class @Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == R.id.x) { } else showPopup(view /* or getView() */); return super.onOptionsItemSelected(item); } public void showPopup