Android Webview - Programmatically change orientation for specific webpage without reloading -
i'm trying see how go changing webview on page if page contains video can watch in landscape mode. not reload webview allow page rotate. how can done? not sure how go it.
i haven't done this, think should work want.
- change orientation code when needed
as dont want interrupt content disable activity retstarrt on orientation change
to change orientation code use
setrequestedorientation(activityinfo.screen_orientation_landscape)
setrequestedorientation(activityinfo.screen_orientation_portrait);
and prevent activity restarting when orientation change use following in manifest
android:configchanges="keyboardhidden|orientation|screensize"
Comments
Post a Comment