Can I turn off all scrolling and scaling in the Android web browser?

I tried to find the answer, but still failed.

I have an activity that uses WebView. Everything that is displayed to the user is displayed in HTML and JavaScript. That is, it WebViewdisplays the entire screen. APK is used to store certain persistent data and run WebView.

In the user interface at the bottom there is a menu for navigating the icons (5 icons at the bottom of the screen) and several visual elements at the top (logo and search button). Everything that is between the upper elements and the lower navigation bar can be changed, updated or updated depending on the user's actions. The various HTML layouts displayed between the upper and lower constants can be scrolled left, right, up and down.

Problem: When the user clicks the right navigation icon in the lower right corner of the screen, the entire layout WebViewshifts to the left by 5-10 pixels. If the icon on the right is displayed to the left, this does not happen. Clicking another icon will move WebViewback to the correct alignment. Touching the largest icon does not lead to similar behavior on the right. Clicking active or inactive HTML elements (which can be moved by scrolling) near any edge of the screen does not change behavior.

At first, the area to the right of the screen was filled with white when I WebViewmoved, and I thought it was ScrollBar. I did every bit ScrollBarand turned off scaling. Now the area is the background color (black) when the change occurs.

- durn WebView ?

+5
1

, Webviews, WebView. :

WebView myWebView = (WebView) findViewById(R.id.appView); 
myWebView.setVerticalScrollBarEnabled(false);
myWebView.setHorizontalScrollBarEnabled(false);
0

All Articles