Custom ChatView
This extension allows you to create chat view in your apps. This extension uses recycler view for chat messages so here you can add any amount of messages without lag or hanging the activity. This extension supports text, image, voice and file messages with many features and customizations.
All Blocks
Documentation
This event raises when any message is clicked.
This event raises when any message long clicked.
This block initialize the chat view layout in given container. It must be initialized before adding any messages.
This block add a message to chat view. If you don’t want to show the title then give empty string to it. Status is defined by three properties (Sending, Sent, Seen).
This block update the message by its position.
This block update the status of the message as already mentioned. Status thing only work for outgoing or messages that are sent by the sender. It won’t affect anything when you uses this block on incoming messages.
This block enables the html format for message text for a given position.
Delete a message for given position.
Clears all the message from the chat view.
Return all the details of a message (e.g time, message, isSender etc) in YailDicitionary format.
These blocks scrolls the chat view at given position.
Set the background color of the whole chat view.
Set the corner radii of the messages. The bubble shapes is adjusted while binding the messages.
Set the properties of the split date that will be shown above messages. Same date won’t
show again. Use MMM
for month name (14 May 2022) and MM
for
month index (14 05 2022)
Set the properties of the message text for both outgoing and incoming messages.
Set the custom status image from assets. If they are not selected then extension will show it’s default images.
Set the properties of the incoming messages.
Set the properties of the outgoing messages.
If you don’t want to show the status of the outgoing message then uncheck this property.
Set the properties of time string of both type of messages.
Set the properties of title of the both types of messages.
How to Use
First of all, You will have to initialize the chat view in a container
After initialization, you can add the messages this way
Screenshots
Downloads
You can download this extension from AI2 Store.