capacitor-plugins
capacitor-plugins copied to clipboard
feat: Keyboard.setResizeMode none for android
Feature Request
Describe the Feature Request
Is this supposed to work/be implemented or just not possible in android? Or is there a workaround? I need the keyboard to cover the webview like it does in iOS.
Platform Support Requested
- [x] Android
- [ ] iOS
- [ ] Electron
- [ ] Web
At the moment, if you don't want to resize the webview, you can add android:windowSoftInputMode="adjustPan"
to your activity in the AndroidManifest.xml
I've been looking into it and seems possible from code to, so should be implemented
At the moment, if you don't want to resize the webview, you can add
android:windowSoftInputMode="adjustPan"
to your activity in theAndroidManifest.xml
I've been looking into it and seems possible from code to, so should be implemented
Is this confirmed? I tried it and it does not seem to make any difference - the webview is still resized.
I tested with this code
Capacitor.Plugins.Keyboard.addListener("keyboardDidShow", () => console.log('keyboardDidShow', window.innerWidth, window.innerHeight));
and the height didn't change after adding that line, so I think it works, but you can share your testing too
Ok, the fault was that I put it on <application>
instead of <activity>
. Sorry for the late reply and thanks!
Reopening as seem possible with code too, so should be implemented
Is there a solution for this yet? I can do android:windowSoftInputMode="adjustPan"
but then I am not able to scroll on the page which is a functionality I need
Is there a solution for this yet? I can do
android:windowSoftInputMode="adjustPan"
but then I am not able to scroll on the page which is a functionality I need
+1
Hi
According this (https://stackoverflow.com/questions/46751925/how-to-set-windowsoftinputmode-programmatically-from-fragments), it is indeed possible to change it programmatically.
However, to be fully useful, it would be great if the webview could be moved on top on the keyboard -so the upper part is outside the top border of the viewport- and we could scroll the whole webview, not only the ion-content part.