2

是否可以创建如下所示的自定义布局图片 。有人可以帮我弄清楚是否可能吗?

4

1 回答 1

1

是的。碰巧有类似想法的人可以遵循本指南

这基本上逐步解释了如何使用 KeyboardView 将自定义键盘放入布局 xml 中。并且可以将那里的键定义为具有任何图标

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
    <Row>
        <Key android:codes="48"    android:keyLabel="0" />
        <Key android:codes="-3"    android:keyIcon="@drawable/human_saying_hello_icon" />
    </Row>
</Keyboard>
于 2017-07-07T10:16:52.130 回答