2

I have a webview with android:configChanges="keyboard|keyboardHidden|orientation" on the AndroidManifest.xml file because i don't want to reload the page when i'm changing the orienatation.

There are some pages when i'm changing from portrait to landscape and then from lanscape to portrait the page takes only half of the webview.

How can i fix it? I don't want to reload the page again. There is any way to resize the content without reload the page?

Arun C
  • 9,035
  • 2
  • 28
  • 42
bilgo
  • 137
  • 1
  • 9

3 Answers3

2

you just need to add

android:configChanges="orientation|screenSize"    
android:windowSoftInputMode="adjustResize"

and yet if you cannot get solution then there is something wrong in you code becuse you can chek my application it's working fine in my app https://play.google.com/store/apps/details?id=com.accusol.zipbooks&hl=en

PankajAndroid
  • 2,689
  • 3
  • 27
  • 41
0

I stuck in same problem, but at last found out the reason is related with "viewport" tag in the html file, not code. Try add this:
<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1.0"/>
in the html file and see whether the problem still exists.
Gluck.

Hoang Nguyen Huu
  • 1,202
  • 17
  • 17
-1

Use screenSize also

android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
Arun C
  • 9,035
  • 2
  • 28
  • 42