0
我已经创建了自定义键盘,我在其中设置属性。 我想在按下按钮时更改关键图片,就像我们以同样的方式按钮一样。 如何在按下时更改按键图标?android软键盘按键事件
<Row>
<Key
android:id="@+id/key1"
android:codes="8"
android:keyEdgeFlags="left"
android:keyIcon="@drawable/k1" />
<Key
android:codes="9"
android:iconPreview="@drawable/k2hover"
android:keyIcon="@drawable/k2" />
<Key
android:codes="10"
android:iconPreview="@drawable/k3hover"
android:keyEdgeFlags="right"
android:keyIcon="@drawable/k3" />
</Row>
如何创建行对象,并在文件中我能得到行对象1?。 BasicOnKeyboardActionListener类实现OnKeyboardActionListener 2.class CustomKeyboardView扩展KeyboardView – user861973