Stay organized with collections Save and categorize content based on your preferences.
added in version 26.1.0
belongs to Maven artifact com.android.support:support-emoji:28.0.0-alpha1

EmojiExtractTextLayout

public class EmojiExtractTextLayout
extends LinearLayout

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ android.support.text.emoji.widget.EmojiExtractTextLayout


Layout that contains emoji compatibility enhanced ExtractEditText. Should be used by InputMethodService implementations.

Call onUpdateExtractingViews(InputMethodService, EditorInfo) from InputMethodService#onUpdateExtractingViews(EditorInfo).

 public class MyInputMethodService extends InputMethodService {
     // ..
     @Override
     public View onCreateExtractTextView() {
         mExtractView = getLayoutInflater().inflate(R.layout.emoji_input_method_extract_layout,
                 null);
         return mExtractView;
     }

     @Override
     public void onUpdateExtractingViews(EditorInfo ei) {
         mExtractView.onUpdateExtractingViews(this, ei);
     }
 }
 

Summary

XML attributes

EmojiExtractTextLayout_emojiReplaceStrategy  

Inherited constants

From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

EmojiExtractTextLayout(Context context)
EmojiExtractTextLayout(Context context, AttributeSet attrs)
EmojiExtractTextLayout(Context context, AttributeSet attrs, int defStyleAttr)
EmojiExtractTextLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public methods

int getEmojiReplaceStrategy()

Returns whether to replace all emoji with EmojiSpans.

void onUpdateExtractingViews(InputMethodService inputMethodService, EditorInfo ei)

Initializes the layout.

void setEmojiReplaceStrategy(int replaceStrategy)

Sets whether to replace all emoji with EmojiSpans.

Inherited methods

From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View