Here is my code to display PopupWindow
View rootView = activity.getWindow().getDecorView().getRootView(); mPopupWindow.showAtLocation(rootView, Gravity.NO_GRAVITY, 0, 0);
When I test it on a Samsung device, Nexus , it shows the status bar below
However, when I test it on a Sony device, it shows the status bar above (for example, the image below)
So which device is displayed correctly or what am I doing wrong? Any help or suggestion would be greatly appreciated.

android sony popupwindow nexus-s
Phan van linh
source share