我有一個livewallpaper,我想我的壁紙只能在肖像模式下工作。我可以做嗎?livewallpaper問題中的肖像模式?
<application
android:label="@string/wallpaper_name"
android:debuggable="true"
android:screenOrientation="portrait"
android:icon="@drawable/icon">
<service
android:label="@string/wallpaper"
android:name=".LiveWallpaper"
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data
android:name="android.service.wallpaper"
android:resource="@xml/weather_wallpaper" />
</service>
</application>
我試試這個,但它不起作用,因爲在應用程序標籤中沒有android:screenOrientation。
是的,當我旋轉模擬器它會自動轉換到橫向模式,但在真實設備中,我測試它在索尼愛立信Xperia X10,HTC Legend,HTC Desire S,它不會自動轉換到風景模式。我有個問題。橫向模式僅適用於模擬器嗎? – George 2011-05-10 15:47:51
謝謝,你已經幫我 – George 2011-05-10 16:47:20
我認爲如果你會使用平板電腦比你可以看到動態壁紙的方向變化太.... @George – MGDroid 2014-03-13 09:01:23