skip to Main Content

I read about dp and pixel and calculate dpi and pixel . but i am confused. I want to know if I want to create UI for my app, is better what resolution I select for beginning? I want to use of Photoshop. on design section in Android studio, there are e few devices with their resolutions,for example (480 * 800 hdpi(nexus one)) and so on . but which one is better for first create on photoshop?

2

Answers


  1. I suggest using px for design

    • Mobile: 360 x 640
    • Tablet 7inch: 600 x 960
    • Tablet 9inch: 1024 x 768

    References

    https://i.stack.imgur.com/rrNoM.png

    https://i.stack.imgur.com/ueFa0.png

    https://i.stack.imgur.com/CAt1u.png

    Login or Signup to reply.
  2. Use Density-independent pixel (dp) units when defining your application’s UI, to ensure proper display of your UI on screens with different densities.
    The android documentation says :

    A virtual pixel unit that you should use when defining UI layout, to
    express layout dimensions or position in a density-independent way.
    The density-independent pixel is equivalent to one physical pixel on a
    160 dpi screen, which is the baseline density assumed by the system
    for a “medium” density screen. At runtime, the system transparently
    handles any scaling of the dp units, as necessary, based on the actual
    density of the screen in use. The conversion of dp units to screen
    pixels is simple: px = dp * (dpi / 160). For example, on a 240 dpi
    screen, 1 dp equals 1.5 physical pixels. You should always use dp
    units when defining your application’s UI, to ensure proper display of
    your UI on screens with different densities.

    You can read it here

    For correct icon size you should read answer this

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search