且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android中带有图像的自定义表情符号键盘

更新时间:2022-12-11 13:31:29

我发现的表情符号键盘的***实现是滑动表情符号键盘这是一个非常好的实现,也许带有一些冗余代码,但是对于理解如何实现不适合普通的按钮到文本"键盘的键盘仍然非常有用.

The best implementation for an emoji keyboard I found was that of sliding emoji-Keyboard It's a really good implementation, maybe with some redundant code, but still really good for understanding how to implement keyboards that do not fit the normal "button-to-text" keyboards.

更新

好的,我现在已经能够成功集成 滑动emoji键盘 到我自己的项目 8Vim 中,项目.

Okay, I have now been able to successfully able to integrate the sliding emoji-keyboard into my own project 8Vim after a lot of re-factoring in both of the projects.

本质上,表情符号键盘的全部工作是创建键盘大小的视图,然后用与表情符号对应的PNG文件填充该视图.每个图像都像一个按钮,并向inputConnection传递适当的表情符号.

Essentially, all you are doing for the emoji keyboard is to create a view of the size of the keyboard and then populating that view with PNG files corresponding to the emoji's. each image acts like a button and delivers the appropriate emoji to the inputConnection.

更新2

我扩展了滑动emoji键盘,并创建了一个更简洁的版本更容易理解.看看我的表情符号键盘

I have extended the sliding emoji-keyboard and created a much cleaner version that should be easier to understand. Take a look at my emoji-keyboard