D Dominic Phillips New Member Licensed User Longtime User Dec 16, 2014 #1 Hi, If I change focus from an edit box to a webview the keyboard stays open and causes the whole screen to scroll up which looks awful in my app. If you click directly into the webview then no keyboard. Edit box followed by webview and it stays. I can use IME to hide the keyboard on lost focus, but it looks clunky. Ideally I would like to disable the keyboard from the webview under any circumstances. Any help would be hugely appreciated. (project attached) Thanks Attachments WebViewIssue.zip WebViewIssue.zip 351.2 KB · Views: 392
Hi, If I change focus from an edit box to a webview the keyboard stays open and causes the whole screen to scroll up which looks awful in my app. If you click directly into the webview then no keyboard. Edit box followed by webview and it stays. I can use IME to hide the keyboard on lost focus, but it looks clunky. Ideally I would like to disable the keyboard from the webview under any circumstances. Any help would be hugely appreciated. (project attached) Thanks
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2014 #2 You can disable the automatic panning mode with this manifest editor line: Code: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Upvote 0
You can disable the automatic panning mode with this manifest editor line: Code: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
D Dominic Phillips New Member Licensed User Longtime User Dec 17, 2014 #3 Erel said: You can disable the automatic panning mode with this manifest editor line: Code: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Click to expand... Hi Erel, A big, big thank you for your quick response. In fact I solved the issue another way using another post your provided for a separate issue. The best option was to disable the ability for the webview to take the focus as it doesn’t need to for my purposes (I’m displaying a database table). Hence: Dim r As Reflector r.Target = webview r.RunMethod2("setFocusable", "false", "java.lang.boolean") solved my problem. Thanks again Upvote 0
Erel said: You can disable the automatic panning mode with this manifest editor line: Code: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Click to expand... Hi Erel, A big, big thank you for your quick response. In fact I solved the issue another way using another post your provided for a separate issue. The best option was to disable the ability for the webview to take the focus as it doesn’t need to for my purposes (I’m displaying a database table). Hence: Dim r As Reflector r.Target = webview r.RunMethod2("setFocusable", "false", "java.lang.boolean") solved my problem. Thanks again