EmojiEditText

public class EmojiEditText
extends EditText

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText
         ↳ androidx.emoji2.widget.EmojiEditText


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

Summary

Inherited constants

Inherited fields

Public constructors

EmojiEditText(Context context)
EmojiEditText(Context context, AttributeSet attrs)
EmojiEditText(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 setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback)

See TextViewCompat.setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

void setKeyListener(KeyListener keyListener)
void setMaxEmojiCount(int maxEmojiCount)

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

Inherited methods