added in version 26.1.0
belongs to Maven artifact com.android.support:support-emoji-appcompat:28.0.0-alpha1

EmojiAppCompatEditText

public class EmojiAppCompatEditText
extends AppCompatEditText

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText
         ↳ android.support.v7.widget.AppCompatEditText
           ↳ android.support.text.emoji.widget.EmojiAppCompatEditText


AppCompatEditText widget enhanced with emoji capability by using EmojiEditTextHelper. When used on devices running API 18 or below, this widget acts as a regular AppCompatEditText.

Summary

XML attributes

EmojiEditText_maxEmojiCount  

Inherited constants

From class android.widget.TextView
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

EmojiAppCompatEditText(Context context)
EmojiAppCompatEditText(Context context, AttributeSet attrs)
EmojiAppCompatEditText(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

int getMaxEmojiCount()

Returns the maximum number of EmojiSpans to be added to a CharSequence.

InputConnection onCreateInputConnection(EditorInfo outAttrs)
void setKeyListener(KeyListener keyListener)
void setMaxEmojiCount(int maxEmojiCount)

Set the maximum number of EmojiSpans to be added to a CharSequence.

Inherited methods

From class android.support.v7.widget.AppCompatEditText
From class android.widget.EditText
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
From interface android.support.v4.view.TintableBackgroundView
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

XML attributes

EmojiEditText_maxEmojiCount

Related methods:

Public constructors

EmojiAppCompatEditText

added in version 26.1.0
EmojiAppCompatEditText (Context context)

Parameters
context Context

EmojiAppCompatEditText

added in version 26.1.0
EmojiAppCompatEditText (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

EmojiAppCompatEditText

added in version 26.1.0
EmojiAppCompatEditText (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

getMaxEmojiCount

added in version 26.1.0
int getMaxEmojiCount ()

Returns the maximum number of EmojiSpans to be added to a CharSequence.

Related XML Attributes:

Returns
int

onCreateInputConnection

InputConnection onCreateInputConnection (EditorInfo outAttrs)

Parameters
outAttrs EditorInfo

Returns
InputConnection

setKeyListener

void setKeyListener (KeyListener keyListener)

Parameters
keyListener KeyListener

setMaxEmojiCount

added in version 26.1.0
void setMaxEmojiCount (int maxEmojiCount)

Set the maximum number of EmojiSpans to be added to a CharSequence. The number of spans in a CharSequence affects the performance of the EditText insert/delete operations. Insert/delete operations slow down as the number of spans increases.

Related XML Attributes:

Parameters
maxEmojiCount int: maximum number of EmojiSpans to be added to a single CharSequence, should be equal or greater than 0