我今天一直致力于支持多个屏幕,我一直在观看这个视频,我觉得这个视频非常有用。
http://www.youtube.com/watch?v=C8dGQEN9sRs
我刚刚使用这个编写我的应用程序,在完成了大小的小布局后,我认为有更快的方法,所以我对它进行了调整并发现了这个
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"/>
出于某种原因,我认为我需要两者,我是编码的新手,所以我花时间去挑选。我编码错了或我是在正确的轨道上,我也需要在我的MF中。
这是我的项目设置http://img96.imageshack.us/img96/7198/gd0h.jpg
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.demo1"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="19" />
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/mytheme" >
<activity
android:name="com.example.demo1.Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="LayoutMainActivity"></activity>
<activity android:name="ListviewCode"></activity>
<activity android:name="Information"></activity>
<activity android:name="StartButton"></activity>
</application>
</manifest>
谢谢