In Android dimensions can be measured in:
- px
pixels, equivalent to the effective pixels of the screen. - in
inches , based on the physical size of the screen, measured in inches. - mm
millimeters, based on the physical size of the screen, measured in "mm". - pt
points, based on the physical size of the screen, measured in "punti" di 1/72 di pollice l'uno. - dp o dip
d ensity- i ndependent p ixels , rappresenta 1 pixel su uno schermo di 160 dpi ( d ots p er i nch ). Il rapporto dp-to-pixel cambierà quindi in base alla densità dello schermo. - sp o sip
s cale- i ndependent p ixels , simile all'unità Dp , but also scaled according to your preferences, you specify, the size of fonts.
NB Android emulator is displayed on a monitor that usually possess a pixel density of 72dpi different from that of the display of mobile devices in circulation, as the T-Mobile G1 which has a pixel density of 180dpi !
For further information, visit the following link: http://developer.android.com/intl/zh-CN/guide/topics/resources/available-resources.html # dimension
0 comments:
Post a Comment