天天看点

android开发:让程序适应不同屏幕大小

对androidmanifest.xml进行配置即可:

<supports-screens android:resizeable="true" />      

附:

<supports-screensandroid:resizeable=["true"|"false"]
                  android:smallScreens=["true" | "false"]
                  android:normalScreens=["true" | "false"]
                  android:largeScreens=["true" | "false"]
                  android:xlargeScreens=["true" | "false"]
                  android:anyDensity=["true" | "false"]
                  android:requiresSmallestWidthDp="integer"
                  android:compatibleWidthLimitDp="integer"
                  android:largestWidthLimitDp="integer"/>      

还有屏幕自适应的参考:http://www.cnblogs.com/mybkn/articles/2535519.html

转载于:https://www.cnblogs.com/wuchao/archive/2013/03/20/2971186.html