Android Question How does designer calculate screen WxH dimensions?

Discussion in 'Android Questions' started by stanmiller, May 12, 2015.

  1. stanmiller

    stanmiller Active Member Licensed User

    I have a device with a 480x640 physical screen size. The designer reports the dimensions as 480x577.

    I understand this is linked to dip and density and scaling but can't seem to figure out the calculation how to get from 640 to 577?

    Can you walk me through an example?

    Display Test reports physical screen size


    Designer reports dimensions as 480x577


  2. Erel

    Erel Administrator Staff Member Licensed User

    The designer reports the activity size (without the system bars).
    Peter Simpson likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    Your device has 480x640
    But you cant use the Notificationbar in the top and also the navigationbar in the bottom.

    So i believe

    640 - Notificationbarheight - NavigationbarHeight = 577

    come to affect in your case
    Peter Simpson likes this.
  4. stanmiller

    stanmiller Active Member Licensed User

    Ah, see... Thanks for the replies.

    It's the navigation bar that is consuming the 63 pixels. Using a fullscreen activity with no title, I'm able to position a view on the 576th line using the designer.


    This device is running JellyBean 4.2.2