简体   繁体   中英

Want to clear all doubts about Android multiple screen sizes Support?

i want to clear my all doubts about android multiple screen support. i have searched a lot but not found any solution for it. i can clear my question by giving an example.

first i have a screen 480*800 and i have all image resources used in this screen with relative to this size(480*800). and i have created my layout using wrap_content attribute.

so i want to ask where i put these image resources in drawable hdpi or mdpi or ldpi or x-hdpi. for example if i put these in drawable hdpi then what about other folders and other screen sizes.

i have read all Article on developer's website but i didn't found any solution. or where could i found a complete tutorial whit handling this issue.

Thanks in advance.

将这些文件用于可绘制文件夹中的所有类型的屏幕分辨率,如果要以hdpi或mdpi或ldpi或x-hdpi使用特定的屏幕大小,则必须为所有文件创建一个“可绘制”文件夹常用尺寸。

480 * 800 is a mdpi device. You can can put these image resources in drawable-mdpi if you want the device to auto adjust for smaller and larger screen sizes. If you want these images to be of maximum size you can put it in drawable-xhdpi . If not ie if you want same image to be used in all the screen sizes then you can simply put in drawable folder in resource.

For more information you can check this : developer link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM