我想做一个需要表情符号的聊天应用程序。我试图编写自己的 TextBox 来处理一些 unicode 字符并用微笑和表情符号替换它们,但这是一项艰巨的工作,并且遇到了很多问题。
然后我尝试制作一种带有表情符号的自定义字体,但我发现字体是黑白的,无法着色。
然后我尝试使用不同的 EditField,因此当我找到位图时,我绘制它并启动不同的 EditField,但这对于多行不起作用,并且发生了选择问题。
最好的方法是编写我自己的textField,它会找到一个特殊的unicode字符,添加2个空格,获取unicode字符的位置,然后在该位置绘制位图图像。但是,当表情符号的数量变大时,速度非常慢
是否有一个工具或 API 或我错过的方法可以在 BlackBerry 设备上为我制作表情符号?请帮忙解决这个话题我到处搜索但还没有找到
I want to make a chat application where the emoticons are necessary. I was trying to write my own TextBox to handle some unicode caracters and replace them with smiles and emoticons, but that was a hard work to do and I encountered many problems.
Then I tried to make a custom font that will have emoticons in it but I found that a font is made in black and white and cannot be colored.
I tried then to use different EditFields so when I find a Bitmap I draw it and start a different EditField but that didnt work for several lines and selection problems occured.
The best way was to write my own textField that will find a special unicode caracter, add 2 spaces to, get the location of the unicode caracter and then draw the bitmap image in this location. But that was very slow when the number of emoticons becomes bigger
Is there a tool or an API or a way that I missed that will do the emoticons for me on BlackBerry devices? Please help in this topic I searched everywhere and nothing found yet
发布评论
评论(1)
我们可以尝试使用网络论坛的方法:
尝试以下代码:
We could try to use a web forums approach:
Try this code: