How to create an Android on-screen keyboard that is not a rectangle at the bottom of the screen?

I want to design a replacement keyboard, but I'm afraid that Android assumes that the common 'area' keyboard will be a single rectangular shape located at the bottom of the screen.

What if I want my keyboard to consist of several shapes that don't just sit at the bottom of the screen? Am I doomed from the start, or can I do what I want to do?

As for the note, what if I want my keyboard to appear when the phone is in a certain orientation, but when the phone is held in a different orientation, does the usual soft keyboard be used? Again, no luck or maybe?

Hooray!

+5
source share
2 answers

IME is just a window. It is located relative to the bottom of the screen, so you cannot control it. But you can draw whatever you want, or not in places where you want to be transparent. You can control how many applications are moving from your IME with this: http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html#onComputeInsets(android.inputmethodservice.InputMethodService.Insets )

Android Windows , ; , , - Insets.touchableInsets, , , .

+4

, , . , .

, , , , .

, . - , " "... , . - , . , . Android.

0

All Articles