Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.emoji:emoji:1.0.0-rc01

EmojiTextView

public class EmojiTextView
extends TextView

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ androidx.emoji.widget.EmojiTextView


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

Summary

Inherited constants

Inherited fields

Public constructors

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

Public methods

void setAllCaps(boolean allCaps)
void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback)

See TextViewCompat.setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

void setFilters(InputFilter[] filters)

Inherited methods

Public constructors

EmojiTextView

added in version 1.0.0
public EmojiTextView (Context context)

Parameters
context Context

EmojiTextView

added in version 1.0.0
public EmojiTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

EmojiTextView

added in version 1.0.0
public EmojiTextView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

EmojiTextView

added in version 1.0.0
public EmojiTextView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr, 
                int defStyleRes)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

defStyleRes int

Public methods

setAllCaps

public void setAllCaps (boolean allCaps)

Parameters
allCaps boolean

setCustomSelectionActionModeCallback

public void setCustomSelectionActionModeCallback (ActionMode.Callback actionModeCallback)

See TextViewCompat.setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

Parameters
actionModeCallback ActionMode.Callback

setFilters

public void setFilters (InputFilter[] filters)

Parameters
filters InputFilter