public class EmojIconsPopup extends android.widget.PopupWindow implements EmojiconRecents
| Modifier and Type | Class and Description |
|---|---|
static interface |
EmojIconsPopup.OnEmojiconBackspaceClickedListener |
static interface |
EmojIconsPopup.OnSoftKeyboardOpenCloseListener |
static class |
EmojIconsPopup.RepeatListener
A class, that can be used as a TouchListener on any view (e.g.
|
| Modifier and Type | Field and Description |
|---|---|
EmojiconGridView.OnEmojiconClickedListener |
onEmojiconClickedListener |
| Constructor and Description |
|---|
EmojIconsPopup(android.view.View rootView,
android.content.Context mContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRecentEmoji(android.content.Context context,
Emojicon emojicon) |
void |
dismiss()
Dismiss the popup
|
java.lang.Boolean |
isKeyBoardOpen() |
void |
onPageScrolled(int i,
float v,
int i2) |
void |
onPageScrollStateChanged(int i) |
void |
onPageSelected(int i) |
void |
setOnEmojiconBackspaceClickedListener(EmojIconsPopup.OnEmojiconBackspaceClickedListener listener)
Set the listener for the event when backspace on emojicon popup is clicked
|
void |
setOnEmojiconClickedListener(EmojiconGridView.OnEmojiconClickedListener listener)
Set the listener for the event when any of the emojicon is clicked
|
void |
setOnSoftKeyboardOpenCloseListener(EmojIconsPopup.OnSoftKeyboardOpenCloseListener listener)
Set the listener for the event of keyboard opening or closing.
|
void |
setSize(int width,
int height)
Manually set the popup window size
|
void |
setSizeForSoftKeyboard()
Call this function to resize the emoji popup according to your soft keyboard size
|
void |
showAtBottom()
Use this function to show the emoji popup.
|
void |
showAtBottomPending()
Use this function when the soft keyboard has not been opened yet.
|
getAnimationStyle, getBackground, getContentView, getElevation, getHeight, getInputMethodMode, getMaxAvailableHeight, getMaxAvailableHeight, getSoftInputMode, getWidth, isAboveAnchor, isClippingEnabled, isFocusable, isOutsideTouchable, isShowing, isSplitTouchEnabled, isTouchable, setAnimationStyle, setBackgroundDrawable, setClippingEnabled, setContentView, setElevation, setFocusable, setHeight, setIgnoreCheekPress, setInputMethodMode, setOnDismissListener, setOutsideTouchable, setSoftInputMode, setSplitTouchEnabled, setTouchable, setTouchInterceptor, setWidth, setWindowLayoutMode, showAsDropDown, showAsDropDown, showAsDropDown, showAtLocation, update, update, update, update, update, updatepublic EmojiconGridView.OnEmojiconClickedListener onEmojiconClickedListener
public EmojIconsPopup(android.view.View rootView,
android.content.Context mContext)
rootView - The top most layout in your view hierarchy. The difference of this view and the screen height will be used to calculate the keyboard height.mContext - The context of current activity.public void setOnSoftKeyboardOpenCloseListener(EmojIconsPopup.OnSoftKeyboardOpenCloseListener listener)
public void setOnEmojiconClickedListener(EmojiconGridView.OnEmojiconClickedListener listener)
public void setOnEmojiconBackspaceClickedListener(EmojIconsPopup.OnEmojiconBackspaceClickedListener listener)
public void showAtBottom()
public void showAtBottomPending()
public java.lang.Boolean isKeyBoardOpen()
public void dismiss()
dismiss in class android.widget.PopupWindowpublic void setSizeForSoftKeyboard()
public void setSize(int width,
int height)
width - Width of the popupheight - Height of the popuppublic void addRecentEmoji(android.content.Context context,
Emojicon emojicon)
addRecentEmoji in interface EmojiconRecentspublic void onPageScrolled(int i,
float v,
int i2)
public void onPageSelected(int i)
public void onPageScrollStateChanged(int i)