Android multiple screen sizes with same density

后端 未结 6 843
你的背包
你的背包 2020-11-29 16:49

I\'m confused regarding the densities. I see that with medium density, the screen resolution could be either 320x480, 480x800, or 480x854. So if I have an image thats 300px

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 17:35

    This is what Device Independent Pixels (DIPs) are for. Instead of 320px write 320dip.

    http://developer.android.com/guide/practices/screens_support.html

提交回复
热议问题