Image resolution for mdpi, hdpi, xhdpi and xxhdpi

前端 未结 5 711
余生分开走
余生分开走 2020-12-04 06:09

I have a background for my app in resolutions 720x1280 pixels, 1080x1920 pixels and 1440x2560 pixels.

In which folders (mdpi, hdpi, xhdpi and xxhdpi) should I put ea

5条回答
  •  佛祖请我去吃肉
    2020-12-04 06:17

    in order to know the phone resolution simply create a image with label mdpi, hdpi, xhdpi and xxhdpi. put these images in respective folder like mdpi, hdpi, xhdpi and xxhdpi. create a image view in layout and load this image. the phone will load the respective image from a specific folder. by this you will get the phone resolution or *dpi it is using.

提交回复
热议问题