red*_*rom 5 android jquery-mobile cordova
我有JqueryMobile和Phonegap应用程序的问题.如果我旋转手机,应用程序将从'index.html'重新加载.这是Jquerymobile或Phonegap中的错误吗?有没有办法在旋转更改或将旋转设置到固定位置后停止此页面重新加载?
Sat*_*ish 12
您可以通过设置此属性来锁定方向:
AndroidManifest.xml中
<activity ........ android:screenOrientation="portrait">
Run Code Online (Sandbox Code Playgroud)
或属性列表中的IOS(.plist文件)
<dict>
`.....
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
..........
</dict>
Run Code Online (Sandbox Code Playgroud)
在Jquery Mobile或PhoneGap中禁用自动旋转
归档时间: |
|
查看次数: |
4520 次 |
最近记录: |