I want to change position of PopupWindow dynamically. Have used the following method:
public void showAtLocation (View parent, int gravity, int x, int y)
But sometime PopupWindow shows out of screen. So which relative parameter should I use for changing the value x and y (like layout height or width etc)?