android - MotionEvent.getX() and getY() not return correct value -


the description of question in image below: question

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

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -