All UI in the form of lists in Sendbird UIKit are implemented using RecyclerView, which is a type of view that efficiently manages and displays large sets of data. In order to customize an item in a list, you need to customize the Adapter used in the RecyclerView. Adapters bind data sets of the list to the view that the list is displayed in.
MessageListAdapteris used as am example in the codes below to show how to customize and add a new message type to the message list. You can replace
MessageListAdapterwith any other adapters used in UIKit to customize list items in fragments that use a list view.
- You need to inherit
MessageListAdapterfirst and override
onBindViewHolder()methods like you would implement
- Set the custom adapter in the