I'm not sure if x and y parameters should be pixels of DensityIndependentPixels.
I've tried to get this information from Android's documentation but there's no answer:
After digging deeper I've only got more questions:
The WindowManager.LayoutParams
docs contains more explaination about x and y:
yet still not the one that I'm looking for.