最近项目需要支持表情,表情的添加和解析实现基本上是参照Android自身的SmileyParser,具体就不多讲了, 直接贴上代码: 代码如下: public class SmileyParser { private static SmileyParser sInstance = null; private Context mContext = null; private Pattern mPattern = null; private HashMapString, Integer mSmileyTextToId = null; private final String[] mSmileyArrays = {"/西瓜","89","/...
[ 查看全文 ]