Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

EmojiTextView

open class EmojiTextView : TextView
kotlin.Any
   ↳ 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

Public constructors

<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods

open Unit
setAllCaps(allCaps: Boolean)

open Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

open Unit

Public constructors

<init>

EmojiTextView(context: Context!)

<init>

EmojiTextView(context: Context!, attrs: AttributeSet!)

<init>

EmojiTextView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>

EmojiTextView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods

setAllCaps

open fun setAllCaps(allCaps: Boolean): Unit

setCustomSelectionActionModeCallback

open fun setCustomSelectionActionModeCallback(actionModeCallback: Callback!): Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

setFilters

open fun setFilters(filters: Array<InputFilter!>!): Unit