简体   繁体   English

如何在android中使用tamil字体创建自定义键盘?

[英]How to create a custom keyboard in android with tamil fonts?

For my project i need to create a keyboard with tamil fonts.I got some information in google like keycodes. 对于我的项目,我需要创建一个带有泰米尔字体的键盘。我在谷歌中获得了一些类似密码的信息。 but not clear 但不清楚

Sample output: output: "பே" 样本输出:输出:“பே”

for the above letter i need to press two keys("ப"and"ே"), so how can i detect which keys are pressed and how can i replace it. 对于上面的字母,我需要按两个键(“ப”和“ே”),那么如何检测按下哪些键以及如何更换它。

Thanks in advance, 提前致谢,

Your can start building custom keyboard according this tutorial 您可以根据本教程开始构建自定义键盘

And replace eg. 并替换例如。

<key android:codes="57" android:keyLabel="9"/>

with

<Key android:keyOutputText="பே"  android:keyLabel="பே"/>

Or try to find correct keycode for you output 或者尝试为您输出找到正确的密钥代码

I tried it with android:keyOutputText and works for me. 我用android:keyOutputText尝试了它并且适用于我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM