dinidu
dinidu

Reputation: 183

How to handle rotation in an HTML5 web app?

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

Answers (1)

Ranjith
Ranjith

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

Related Questions