I am developing an application for Android and I am using a popup window when the user clicks a specific menu bar object(consisting of small images lined up horizontally) on
popupWindow.showAtLocation(anchor, Gravity.BOTTOM, 0, anchor.getHeight());