在android中将文本转换为表情符号

前端之家收集整理的这篇文章主要介绍了在android中将文本转换为表情符号前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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://www.f2er.com/android/431128.html

猜你在找的Android相关文章