gpt4 book ai didi

android - 在 CustomKeyboardView 中显示 over 2

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:37:57 26 4
gpt4 key购买 nike

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

效果很好。

我想以与大多数硬件键盘上构建的“Enter”键相同的方式显示 OK 键:大和 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" />

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

编辑:我张贴一张图片来解释我的苦恼:You can see the 'delete' key has empty space above and I want this delete key to claim it

已解决:enter image description here

最佳答案

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

关于android - 在 CustomKeyboardView 中显示 <Key> over 2 <Row>?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29774745/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com