Java Code Examples for android.widget.TextView#setTextKeepState()

The following examples show how to use android.widget.TextView#setTextKeepState() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EmojiUtil.java    From Klyph with MIT License 4 votes vote down vote up
public static void convertTextToEmoji(TextView textView, boolean addLinks)
{
	textView.setTextKeepState(getSpannableForText(textView.getContext(), textView.getText().toString(), addLinks), BufferType.SPANNABLE);
}
 
Example 2
Source File: EmojiUtil.java    From KlyphMessenger with MIT License 4 votes vote down vote up
public static void convertTextToEmoji(TextView textView, boolean addLinks)
{
	textView.setTextKeepState(getSpannableForText(textView.getContext(), textView.getText().toString(), addLinks), BufferType.SPANNABLE);
}