Rough Block Diagram
[Display Device] <>--- [Logical Display] <>--- [WindowManager]
DisplayInfo
has followings (Initial values are set as information from display device).
:logicalHeight
:logicalWidth
:appWidth
:appHeight
DisplayDevice
has followings
:mCurrentLayerStackRect
:mCurrentDisplayRect
shown on the display.
|
v
[LayerStackRect] ---(project to)---> [DisplayRect]
^
|
This value is outbound of WindowManager.
Above information is very rough and... NOT strictly verified.
Here is useful tool supported by Google to handle displaying area and density - wm.
You can find it at '/system/bin/wm'
root@generic:/system/bin # ./wm reset usage: wm [subcommand] [options] wm size [reset|WxH] wm density [reset|DENSITY] wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]
Very useful isn't it!
'Domain > Android' 카테고리의 다른 글
[Android] Package verification with signature. (0) | 2015.02.02 |
---|---|
Multiple ABI and 64bit on Lolipop (2) | 2014.11.08 |
[Android] Loading & Resolving classes by ClassLoader for APK. (0) | 2014.07.18 |
Create and use java library from packages. (0) | 2014.02.03 |
[NDK] 불편한 진실... 00 (0) | 2013.11.25 |