Sunday, October 25, 2009

Happy Birthday Arabic Written

Size units that are supported by Google Android

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.
A special note should be made for dip in the unit not exactly conventional but that is useful and even essential in many contexts. To justify its use just imagine two Android devices that have two screens on the same physical size but different resolutions. With the same physical dimensions, if the first screen has a resolution of 320x480 and the second one 640x480, it will also have a pixel density greater than the first, dpi or greater. If, on the two devices, using the pixel to represent any object, a button of width 100px for example, this would appear greatest in the first screen (320x480) and smaller in the second (640x480) . Using dip, however, the object, a width of button 100dp example, would appear equal in size in both devices. In the creation of UI ( U ser I nterface s) is therefore desirable the use of measurement units independent from the device used, such as dip precisely.

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 !

0 comments:

Post a Comment