How to make the candidate view on softkeyboard an unblocked view of the application?

I play with Demo SoftKeyboard, it comes with Android SDK.

In portrait mode, when a candidate’s view is displayed, it doesn’t move the application like a regular Android keyboard does. Therefore, it covers part of the kind of application.

What needs to be changed to make the nomination of the candidate in the demo software keyboard lead, as the Android keyboard does by default?

I also looked at the source of the Android keyboard from git, but did not find anything related to this behavior.

+4
source share
1 answer

I know this is old, but in any case this is the answer.

@Override public void onComputeInsets(InputMethodService.Insets outInsets) { super.onComputeInsets(outInsets); if (!isFullscreenMode()) { outInsets.contentTopInsets = outInsets.visibleTopInsets; } } 
+5
source

Source: https://habr.com/ru/post/1308712/


All Articles