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

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -