Skip to content

Most visited

Recently visited

navigation

EmojiButton

public class EmojiButton
extends Button

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.Button
         ↳ android.support.text.emoji.widget.EmojiButton


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

Summary

Inherited XML attributes

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

Inherited constants

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

Inherited fields

From class android.view.View

Public constructors

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

Public methods

void setAllCaps(boolean allCaps)

Sets the properties of this field to transform input to ALL CAPS display.

void setFilters(InputFilter[] filters)

Sets the list of input filters that will be used if the buffer is Editable.

Inherited methods

From class android.widget.Button
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
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

Public constructors

EmojiButton

EmojiButton (Context context)

Parameters
context Context

EmojiButton

EmojiButton (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

EmojiButton

EmojiButton (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

EmojiButton

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

Parameters
context Context

attrs AttributeSet

defStyleAttr int

defStyleRes int

Public methods

setAllCaps

void setAllCaps (boolean allCaps)

Sets the properties of this field to transform input to ALL CAPS display. This may use a "small caps" formatting if available. This setting will be ignored if this field is editable or selectable. This call replaces the current transformation method. Disabling this will not necessarily restore the previous behavior from before this was enabled.

Parameters
allCaps boolean

setFilters

void setFilters (InputFilter[] filters)

Sets the list of input filters that will be used if the buffer is Editable. Has no effect otherwise.

Parameters
filters InputFilter

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.