我有一张动态壁纸,我只想让我的壁纸在纵向模式下工作。我可以做吗?
<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 。