How can I list several Unicode codes for an Android soft keyboard?

丶灬走出姿态 提交于 2019-12-11 07:07:11

问题


So far my keys look like this:

<Key android:codes="97,228,230,229,64" android:keyLabel="a" android:popupKeyboard="@xml/keyboard_popup_template" android:popupCharacters="aäæå@"/>

I have also found out that this syntax works:

<Key android:codes="0x0061" android:keyLabel="a" android:popupKeyboard="@xml/keyboard_popup_template" android:popupCharacters="aäæå@"/>

But I want to write my codes in Unicode Hex values (because I have them already documented, our project never uses Dec values so far) and I want to explicitely list all the codes, not rely on what the popup shows as visuals.

So how can I list more than one 0xnnnn please?

I tried "0x0061,0x00e6,0x00e5,0x0040" - it does not work.

I tried "0x0061,00e6,00e5,0040" - it does not work.

I searched on Stackoverflow and in the Android Studio help and could not find how.

I tried some flavours of "\\u0061,\\00e6" (as given by Android Studio help) but that does not even work for one value, let alone several.

Please help and let me know. Sorry if this is trivial to you.

来源:https://stackoverflow.com/questions/46415840/how-can-i-list-several-unicode-codes-for-an-android-soft-keyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!