This commit is contained in:
Domagalski 2018-12-15 22:47:23 +01:00
parent 90aa21be1d
commit 672a6bee06

View File

@ -350,7 +350,8 @@ public abstract class BaseActivity
anchorView.getLocationOnScreen(location);
// Using location, the PopupWindow will be displayed right under anchorView
popupWindow.showAsDropDown(anchorView,0,170,Gravity.RIGHT);
// popupWindow.showAsDropDown(anchorView,6,170,Gravity.RIGHT|Gravity.CENTER);
popupWindow.showAtLocation(anchorView,Gravity.TOP|Gravity.RIGHT, 0, 0);
// popupWindow.showAtLocation(anchorView, Gravity.NO_GRAVITY,
// location[0] + anchorView.getWidth() / 2, location[1] + anchorView.getHeight());
}