Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windowSoftInputMode: adjustResize doesn't work properly for numeric keyboard, when keyboard suggests text

When text is copied to clipboard and suggestion is shown, top of keyboard hides the small part of view behind, I think it's a problem of "Gboard", because if EditText inputType is "text" everything works fine, but when it's "number" type, it causes problem.

Here is style that I use:

<style name="BottomSheetDialogStyle">
    <item name="android:windowIsFloating">false</item>
    <item name="android:statusBarColor">@android:color/transparent</item>
    <item name="android:windowSoftInputMode">adjustResize</item>
</style>

enter image description here

like image 883
Nika Chapidze Avatar asked Mar 23 '21 10:03

Nika Chapidze


1 Answers

Your problem is that you're using a bottom sheet and it does not expand completely and I guess if you try to scroll it, you can see the button completely.

We had a bad UI design like this in the pas, and a dirty solution we've finally found was removing the button from the bottom sheet and adding it to the Frame layout which is 3layers above the root of bottom sheet

Also there are some libraries like this which do the job https://github.com/xyzcod2/StickyBottomSheet

like image 74
Amin Avatar answered Nov 15 '22 14:11

Amin