JohnC Expert Licensed User Longtime User May 16, 2018 #1 I am displaying a remote webpage using webview and I am using IME to resize the webview control when the keyboard gets displayed/hidden so any text boxes will be visible when the user is typing text into a webpage. However, the zoom controls of the webview appear every time the user just scrolls the screen - even if they don't do a pinch/zoom gesture. I tried doing this: Code: Copy wv.ZoomEnabled = False And that didn't work I tried to hide the zoom controls using the lib (https://www.b4x.com/android/forum/threads/webviewsettings.12929/) and that didn't work. I narrowed the problem down to this line: Code: Copy IME.AddHeightChangedEvent If I remove this line, then the Zoom controls wont appear using either of the above methods. Is there a conflict between the webview and IME? Last edited: May 16, 2018
I am displaying a remote webpage using webview and I am using IME to resize the webview control when the keyboard gets displayed/hidden so any text boxes will be visible when the user is typing text into a webpage. However, the zoom controls of the webview appear every time the user just scrolls the screen - even if they don't do a pinch/zoom gesture. I tried doing this: Code: Copy wv.ZoomEnabled = False And that didn't work I tried to hide the zoom controls using the lib (https://www.b4x.com/android/forum/threads/webviewsettings.12929/) and that didn't work. I narrowed the problem down to this line: Code: Copy IME.AddHeightChangedEvent If I remove this line, then the Zoom controls wont appear using either of the above methods. Is there a conflict between the webview and IME?
Erel B4X founder Staff member Licensed User Longtime User May 17, 2018 #2 Can you upload a small project that demonstrates this issue? Upvote 0
JohnC Expert Licensed User Longtime User May 26, 2018 #3 I found the problem. If you have "ZoomEnabled" checked for the webview control in the "designer" then this will happen (you wont be able to hide zoom controls when using IME.HeightChanged). When I unchecked it, then the zoom controls stayed hidden Upvote 0
I found the problem. If you have "ZoomEnabled" checked for the webview control in the "designer" then this will happen (you wont be able to hide zoom controls when using IME.HeightChanged). When I unchecked it, then the zoom controls stayed hidden