What's New
Implement a simple chat bubble with a button
Let's say you want to implement a simple chat bubble like this, with RecyclerView ViewType and Kotlin:

When sending a message, fill in the key-value data in '
metaData' property which will be used for creating an UIView instance.
Define a 'CardViewMessageModel' data class that contains data to be displayed on the screen.
Add a ViewType to RecyclerView Adapter class.
'
messageReceived' method will be called whenever receiving a new message. At this method, call 'getData' method in 'TPMessageto get key-value data and then create an instance of 'CardViewMessageModel'.
Last updated