I need to force just the splash screen in portrati orientation, for all devices.
On Worklight, Phonegap or cordova, there is some configuration that i can use to do it?
To lock the application's orientation in Android, open the AndroidManifest.xml
file (located at yourProject\\apps\\yourApp\\android\\native) and add the following:
<activity android:name="MyActivity" android:screenOrientation="portrait"></activity>
As for keeping the splash in portrait but the app in both portrait and landscape, this is not the right approach in my opinion.
Instead, you should create your splash image using Google's 9patch approach so that it would fit properly both portrait and landscape.
What you are asking for is not possible (in Worklight, or at all?) IMO.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.