@H_419_2@
HI in my app i use this class to change my text to emoticon .
public class MainActivity extends Activity {private static final Factory spannableFactory = Spannable.Factory .getInstance();private static final Map
@H_419_2@Q1 : i clicked on this button and show emoticon in edittext . Now i have 400 emoticon,i should create 400 button? or this is not best way ?
Q2 : in app when i clicked on EditText,SelectionStart() is 1 or 0 and begin tyPing from first line . how to change selectionstart to everywhere user touched in edittext like line 3 of edittext ?
最佳答案使用内置库https://github.com/ankushsachdeva/emojicon
https://github.com/rockerhieu/emojicon
或创建自定义IME
https://github.com/AnySoftKeyboard/AnySoftKeyboard
如果您在创建自定义软键盘时感到困惑,则可以免费使用
总结
以上是内存溢出为你收集整理的在android中将文本转换为表情符号全部内容,希望文章能够帮你解决在android中将文本转换为表情符号所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)