我为我的应用程序定制了键盘,这是基于Marteen: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" />我希望最后一行的左键和右键在上一行展开。
编辑:我发布了一张图片来解释我的痛苦:

已解决:

发布于 2015-04-28 14:21:44
您是否尝试将“OK”键放置在最后一行的第4行整数中,并将其设置为双高?
https://stackoverflow.com/questions/29774745
复制相似问题