Map <Key> over 2 <Row> to CustomKeyboardView?

I made custom keyboards for my application based on this amazing study by Martin Pennings: http://www.fampennings.nl/maarten/android/09keyboard/index.htm

It works great.

I want to display the OK key in the same way that the 'Enter' key is built on most hardware keys: large and 2 lines tall.

Any idea on how to do this? Setting the height of the key with a double height does not work, the button is half displayed outside the screen (bottom).

EDIT: Bottom Lines of the Keyboard

<Row> <Key android:codes="87" android:keyLabel="W" android:keyWidth="10%p" android:horizontalGap="20%p"/> <Key android:codes="88" android:keyLabel="X" android:keyWidth="10%p"/> <Key android:codes="67" android:keyLabel="C" android:keyWidth="10%p"/> <Key android:codes="86" android:keyLabel="V" android:keyWidth="10%p"/> <Key android:codes="66" android:keyLabel="B" android:keyWidth="10%p"/> <Key android:codes="78" android:keyLabel="N" android:keyWidth="10%p"/> <Key android:codes="-6" android:keyIcon="@drawable/sym_keyboard_done_48" android:keyWidth="20%p"/> </Row> <Row > <Key android:codes="-5" android:keyIcon="@drawable/sym_keyboard_delete" android:keyWidth="20%p"/> <Key android:codes="32" android:keyLabel=" " android:keyWidth="50%p"/> <Key android:codes="-3" android:keyLabel="OK" android:keyWidth="30%p" /> 

I want the left and right keys of the last line to expand on the top line.

Edit: I am posting a snapshot to explain my distress: You can see the 'delete' key has empty space above and I want this delete key to claim it

It is decided: enter image description here

+6
source share
1 answer

Have you tried putting your “OK” in the fourth row on the last line and setting it as a double level?

+1
source

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


All Articles