EmojiPickerView
class EmojiPickerView : FrameLayout
| kotlin.Any | ||||
| ↳ | android.view.View | |||
| ↳ | android.view.ViewGroup | |||
| ↳ | android.widget.FrameLayout | |||
| ↳ | androidx.emoji2.emojipicker.EmojiPickerView |
The emoji picker view that provides up-to-date emojis in a vertical scrollable view with a clickable horizontal header.
Summary
Public constructors |
|---|
EmojiPickerView(context: Context, attrs: AttributeSet?, defStyleAttr: Int) |
Public functions |
|
|---|---|
open Unit |
The following functions disallow clients to add view to the EmojiPickerView |
open Unit |
|
open Unit |
addView(child: View?, params: ViewGroup.LayoutParams?) |
open Unit |
addView(child: View?, index: Int, params: ViewGroup.LayoutParams?) |
open Unit |
|
open Unit |
The following functions disallow clients to remove view from the EmojiPickerView |
open Unit |
removeView(child: View?) |
open Unit |
removeViewAt(index: Int) |
open Unit |
removeViewInLayout(child: View?) |
open Unit |
removeViews(start: Int, count: Int) |
open Unit |
removeViewsInLayout(start: Int, count: Int) |
Unit |
setOnEmojiPickedListener(This function is used to set the custom behavior after clicking on an emoji icon. |
Unit |
setRecentEmojiProvider(recentEmojiProvider: RecentEmojiProvider) |
Public properties |
|
|---|---|
Int |
The number of columns of the emoji picker. |
Float |
The number of rows of the emoji picker. |
Inherited properties |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Public constructors
EmojiPickerView
EmojiPickerView(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
)
Public functions
addView
open fun addView(child: View?): Unit
The following functions disallow clients to add view to the EmojiPickerView
| Parameters | |
|---|---|
child: View? |
the child view to be added |
addView
open fun addView(child: View?, params: ViewGroup.LayoutParams?): Unit
| Parameters | |
|---|---|
child: View? |
|
params: ViewGroup.LayoutParams? |
addView
open fun addView(child: View?, index: Int, params: ViewGroup.LayoutParams?): Unit
| Parameters | |
|---|---|
child: View? |
|
index: Int |
|
params: ViewGroup.LayoutParams? |
removeAllViews
open fun removeAllViews(): Unit
The following functions disallow clients to remove view from the EmojiPickerView
setOnEmojiPickedListener
fun setOnEmojiPickedListener(
onEmojiPickedListener: Consumer<EmojiViewItem>?
): Unit
This function is used to set the custom behavior after clicking on an emoji icon. Clients could specify their own behavior inside this function.
setRecentEmojiProvider
fun setRecentEmojiProvider(recentEmojiProvider: RecentEmojiProvider): Unit
Public properties
emojiGridColumns
var emojiGridColumns: Int
The number of columns of the emoji picker.
Default value(EmojiPickerConstants.DEFAULT_BODY_COLUMNS: 9) will be used if emojiGridColumns is set to non-positive value.
ref androidx.emoji2.emojipicker.R.styleable.EmojiPickerView_emojiGridColumns
emojiGridRows
var emojiGridRows: Float
The number of rows of the emoji picker.
Optional field. If not set, the value will be calculated based on parent view height and emojiGridColumns. Float value indicates that the picker could display the last row partially, so the users get the idea that they can scroll down for more contents.
ref androidx.emoji2.emojipicker.R.styleable.EmojiPickerView_emojiGridRows