下面列出了android.widget.TextView#setTextKeepState ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public static void convertTextToEmoji(TextView textView, boolean addLinks)
{
textView.setTextKeepState(getSpannableForText(textView.getContext(), textView.getText().toString(), addLinks), BufferType.SPANNABLE);
}
public static void convertTextToEmoji(TextView textView, boolean addLinks)
{
textView.setTextKeepState(getSpannableForText(textView.getContext(), textView.getText().toString(), addLinks), BufferType.SPANNABLE);
}