Customizing Message Display Styles
The IMKit SDK controls message display styles in the chat UI through "Message Display Templates." Apps can modify display templates for specific message types as needed to achieve personalized message styling.
- The SDK provides default display templates for all built-in message types (see Message Type Overview). Apps can create custom templates to replace the defaults.
- Custom message types (see Custom Message Types) don't have default display templates. If an app needs to display custom message types in the chat UI, it must create corresponding display templates.
tip
To display custom message types in the chat UI, you must create corresponding display templates; otherwise, the SDK won't render them properly.
Modifying Message UI via Style Resources
You can replace IMKit's built-in style resources to adjust message bubble backgrounds, text colors, and font sizes—ideal for lightweight UI customization.