Customize chat header
This guide provides step-by-step instructions on customizing
ChannelHeaderComponent. All components of Sendbird UIKit for Android can be also customized in a similar manner.
Create a custom component
Create a new component by inhering from
ChannelHeaderComponent and build the UI in the
onCreateView method as shown in the code below.
Configure custom component in module
Reflect the newly created component within the Module. It's recommended to set up the Module changes using the Provider in the
Bind channel data to UI
You can receive the latest channel data through the
notifyChannelChanged method. Then, use this received data to render the UI.
Bind description data to UI
If using a typing indicator, the description will contain information regarding the typing status. To pass additional information, call the
For an in-depth practical demonstration, see our sample code.