I\'m working on a custom keyboard for Android, and I\'ve run in to an issue where the keyboard seems to leave a white line/space at right, instead of filling the parent view...
I had this problem too. I never found a good solution.
Android's Keyboard layout API sucks. If I were doing this all over again I would not have used it and instead created my own UI from scratch interfacing with InputMethod
directly.
In any case, my solution was to add an extra key at the bottom of the layout with a 100% width and only 1dp height.
The button does absolutely nothing and the height is so small the user doesn't see it. But the width of the key fixes the gap issue.