Capacitor: feat: Keyboard.setResizeMode none for android

Created on 22 Jan 2020  路  7Comments  路  Source: ionic-team/capacitor

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
android unimplemented

Most helpful comment

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

All 7 comments

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 the AndroidManifest.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

Was this page helpful?
0 / 5 - 0 ratings