在CustomKeyboardView中显示<Key> over 2 <Row>?

Pou*_*hor 6 android custom-keyboard

我根据Marteen Pennings的这项惊人的研究为我的应用制作了自定义键盘:http://www.fampennings.nl/maarten/android/09keyboard/index.htm

它工作得很好.

我想显示一个OK键,就像在大多数硬件键盘上构建'Enter'键一样:大和2行高.

有关如何做到这一点的任何想法?将键高设置为双倍高度不起作用,键在屏幕外显示一半(底部).

编辑:我的键盘底行

    <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" />
Run Code Online (Sandbox Code Playgroud)

我希望最后一行的左右键在上一行展开.

编辑:我张贴一张照片来解释我的苦恼: 你可以看到'删除'键上面有空格,我想要这个删除键来声明它

解决了 : 在此输入图像描述

Chr*_*ian 1

您是否尝试将“OK”键放在第四行而不是最后一行并将其设置为双倍高度?