android - MotionEvent.getX() and getY() not return correct value -
the description of question in image below:
the real display area specifies part of display contains content including system decorations. so, real display area may smaller physical size of display if window manager emulating smaller display using (adb shell display-size). use following methods query real display area: getrealsize(point), getrealmetrics(displaymetrics).
a logical display not represent particular physical display device such built-in screen or external monitor. contents of logical display may presented on 1 or more physical displays according devices attached , whether mirroring has been enabled.
Comments
Post a Comment