0

I have a webview with the following problem: on android and desktop it works perfectly on the first page, but when I click the button to go to the second page, the height of the page does not show entirely. Only in android, the scroll and buttons are not responding, desktop is fine. It's an android project downloaded from another github user...

This is the first page working great

This is the second page issue with scroll and buttons

This is the XML layout code file:

xml code part one xml code part two

and here are the more important lines about the webview settings located in MainActivity.java file

mainactivty.java webview settings

NOTE: Normally the website is responsive and working perfectly, whatever android, ios, etc... device, its totally responsive and works fine into a web browser in mobile device, tested physically with real device (no android emulator)

The issue is only with the second page...

dale landry
  • 7,831
  • 2
  • 16
  • 28
  • This might answer your question: [How to get the full height of in android WebView?](https://stackoverflow.com/questions/43394498/how-to-get-the-full-height-of-in-android-webview) – BreakLikesCoding Aug 30 '21 at 23:22
  • Please provide enough code so others can better understand or reproduce the problem. – Community Sep 02 '21 at 05:43

1 Answers1

0

remove the web view from the NestedScrollView and make it match_parent

Omar Mahmoud
  • 2,902
  • 1
  • 14
  • 22