问题描述
我工作的一个项目,我已经在Nexus One上进行了测试。它在那里工作正常,但我想,我的项目应该是与所有的屏幕尺寸兼容。如何做到这一点?我已经给
I am working on a project and i have tested it on nexus one. its working there properly but I want that my project should be compatible with all screen sizes.How to do this??I have given
<supports-screens android:smallScreens="true"/>
<supports-screens android:normalScreens="true"/>
<supports-screens android:largeScreens="true"/>
<supports-screens android:anyDensity="true"/>
<supports-screens android:resizeable="true"
android:anyDensity="true" />
在androidmainfest.xml参数
parameters in the androidmainfest.xml
推荐答案
的http:// developer.android.com/guide/practices/screens_support.html
您必须在资源文件夹中添加不同的充文件夹不同的布局 - >华电国际,MDPI,LDPI和大屏幕,你xhdpi(适用于平板电脑)和大华电国际或XLARGE(对于NXzoom)。并设置图像和TEXTSIZE不同在不同的布局,每个屏幕尺寸.............
You have to add differnt folder for different layout in res folder --> hdpi,mdpi,ldpi and for large screens you xhdpi(for Tablet) and large-hdpi or xlarge (for NXzoom). and also set Images and textsize different in different layout as per screensize.............
这篇关于在Android的多屏支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!