I have a ListView, at the bottom of the screen, and each row is represented by an image, what I need here is to show a PopupWindow, at the top center part when I click on the row, kind of show some small details about it, I tried this
        image.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                View view               = mInflater.inflate(R.layout.poi_popup_info, null);
                final PopupWindow popupWindow = new PopupWindow(view, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, true);
                popupWindow.setBackgroundDrawable(new BitmapDrawable());
                popupWindow.showAsDropDown(image);
            }
        });
but this shows it on the bottom left corner
thank you all for your time !