Use xxhdpi images for xlarge layout

情到浓时终转凉″ 提交于 2019-12-14 03:15:42

问题


I created an Android app with a normal and a large layout. Now I want to create the xlarge layout, but the images are small, though I have them in all resolutions like l,m,x,xx, and xxx. Do I have to store them in double size or can I somehow use the existing ones?


回答1:


Use images of 1920x1080 resolotion

for Xlarge use this folder drawable-xlarge-hdpi

for large use this folder drawable-large-xhdpi

for me its working




回答2:


Size of the images depend on the screen density of the device.

It goes as mdpi:hdpi:xhdpi:xxhdpi:xxxhdpi -> 1x:1.5x:2x:3x:4x

So, check the screen density for the devices and accordingly keep the images in different folders.

You may use same images and just change the layout, but your image may seem pix elated.

If you dont want system to change you images as per density, you can keep them in drawable-nodpi folder.

This link will give you clear idea:

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

http://developer.android.com/design/style/iconography.html

Hope this helps



来源:https://stackoverflow.com/questions/19992067/use-xxhdpi-images-for-xlarge-layout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!