Reputation: 183
How to rotate the content of the HTML5 page when an orientation change occurs without having white area ?
I want to be able to scale the width to the new size as well.
The rotation should happen like the facebook mobile IOS & android app without showing any refreshes or white space while the rotation happens.
I built views with sencha,jquery-mobile all of them when loaded in the webview or phonegap api, displays the resizing while changing orientation. Thanks.
Upvotes: 2
Views: 637
Reputation: 510
add android:configChanges="orientation|screenSize" to the relevant Activity in your manifest. By setting this flag you tell Android to not destroy the Activity
Upvotes: 2