Package ai.nexconn.chatui.widget.dialog
Class MessageLongClickPopup
-
- All Implemented Interfaces:
public class MessageLongClickPopupMessage long-press popup, implemented using PopupWindow with icon support
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessageLongClickPopup.OptionItem
-
Constructor Summary
Constructors Constructor Description MessageLongClickPopup(Context context, List<MessageLongClickPopup.OptionItem> items)
-
Method Summary
Modifier and Type Method Description static MessageLongClickPopupnewInstance(Context context, List<MessageLongClickPopup.OptionItem> items)MessageLongClickPopupsetAnchorView(View anchorView)Set the anchor view; the popup will appear above it MessageLongClickPopupsetOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)Set the click listener voidsetOnDismissListener(OnDismissListener listener)Set the dismiss listener voidshow()Show the popup voiddismiss()Dismiss the popup booleanisShowing()Check whether the popup is currently showing -
-
Constructor Detail
-
MessageLongClickPopup
MessageLongClickPopup(Context context, List<MessageLongClickPopup.OptionItem> items)
-
-
Method Detail
-
newInstance
static MessageLongClickPopup newInstance(Context context, List<MessageLongClickPopup.OptionItem> items)
-
setAnchorView
MessageLongClickPopup setAnchorView(View anchorView)
Set the anchor view; the popup will appear above it
- Parameters:
anchorView- the anchor view- Returns:
this
-
setOptionsPopupDialogListener
MessageLongClickPopup setOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)
Set the click listener
- Parameters:
itemListener- the listener- Returns:
this
-
setOnDismissListener
void setOnDismissListener(OnDismissListener listener)
Set the dismiss listener
- Parameters:
listener- the listener
-
show
void show()
Show the popup
-
dismiss
void dismiss()
Dismiss the popup
-
isShowing
boolean isShowing()
Check whether the popup is currently showing
- Returns:
true if currently showing
-
-
-
-