2

text & icon of key実行時に変更するカスタム キーボードを作成しtext of keyていますicon of key

どんな助け、ヒントもかなりのものです。

キーテキストを変更するためのコードは次のとおりです。

Keyboard currentKeyboard = CustomKeyboard.mInputView.getKeyboard();
List<Keyboard.Key> keys = currentKeyboard.getKeys();
CustomKeyboard.mInputView.invalidateKey(changeKey);
keys.get(changeKey).label = "Change Text";
4

2 に答える 2