Difficulty to understand how to support multiple screen

前端 未结 4 591
Happy的楠姐
Happy的楠姐 2021-02-06 18:06

I have seen so many questions on StackOverFlow how to support multiple screens. But most of the answers provide this link and this. And in the first one link I have

4条回答
  •  走了就别回头了
    2021-02-06 18:32

    In android-

    px = dp * (dpi / 160)
    
    1. So in your first question 960dp x 720dp at 320dpi means 1920px x 1440px for xlarge screen in landscape mode using above formula.

    2. 640dp x 480dp at 240dpi means 960px x 720px for large screen in landscape mode.

    To learn more about check this.

提交回复
热议问题