Mention Edit Text
EditText with Mention feature. This EditText detects the trigger keyword and show a list of suggested users for mention. Plus, If the suggested user is selected, the selected user will be markup as mentioned-text and created as a mention data. since 3.0.0
Constructors
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun MentionEditText(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
Functions
Link copied to clipboard
Link copied to clipboard
open fun bindUserMention(@NonNull config: UserMentionConfig, @NonNull mentionUIConfig: TextUIConfig, @NonNull handler: OnMentionEventListener)
Binds the configuration for mention and the callback for mention to this EditText.
Link copied to clipboard
Returns the mentioned-template text on this EditText.
Link copied to clipboard
Returns the list of mentioned-users on this EditText.
Link copied to clipboard
Return the MentionSpan to which the character at index belongs
Link copied to clipboard
Notifies change of a list of suggested user for mention.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the adapter to be used to a suggested mention popup dialog when the trigger is detected.
Link copied to clipboard
Sets whether to use divider for a suggested mention popup dialog when the trigger is detected.