How to display a custom Dialog box at a specific position?
问题 I have a Button whose click pops up a dialog box.The dialog box is getting displayed at center.But i want to display it just below the button.How to do this ? I tried using popup window also.Here is the code private void showPopup(final Activity context, Point p) { Display display = getWindowManager().getDefaultDisplay(); width = display.getWidth(); // deprecated height = display.getHeight(); // deprecated int popupWidth =width; int popupHeight =height; // Inflate the popup_layout.xml