Stay organized with collections Save and categorize content based on your preferences.
added in version 26.1.0
belongs to Maven artifact


public class EmojiAppCompatEditText
extends AppCompatEditText

   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText

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.


XML attributes


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
From class android.widget.EditText
From class android.widget.TextView