UIKit Android v3
UIKit Android
UIKit
Android
Version 3
Home
/
UIKit
/
Android
/
Customization
Customize messages
Copy link
In order to customize messages in UIKit, you can use the MessageUIConfig
class. MessageUIConfig
allows you to change the UI of texts displayed in channels, which include text messages, reply messages, and user nicknames. Within a single message, you can also modify the text and the background color through TextUIConfig
. The TextUIConfig
class lets you customize each text's font, size, background color, and style within MessageUIConfig
.
There are three ways to customize messages as shown in the codes below. You can do so through either ChannelFragment.Builder
, getMessageListComponent().getParams()
, or setMessageListAdapter
with MessageUIConfig
.
- Customize messages using the builder of
ChannelFragment
.
- Customize messages using the params of
MessageListComponent
.
- If you want to use
MessageUIConfig
, you can set your own custom message toMessageListAdapter
. To customize the individual properties ofTextUIConfig
withinMessageUIConfig
, use theapply()
method to apply the changes to theMessageUIConfig
class.