How to customize the font style of sender name #90
AhyoungRyu
announced in
Conversation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Versions
Summary
This guide explains how to change the font style of sender names displayed in incoming message bubbles.
Guide & Snippet
iOS
Header
Android
Customizing the Font Style or Color
This guide explains how to customize the appearance and layout of message bubbles in the Sendbird AI Agent Android SDK, including sender name styling.
Overview
The AI Agent SDK provides message containers that handle by message alignments:
The container provides overridable methods to customize individual UI components.
Message Container Types
1. OtherMessageContainer (Left-aligned)
Used for messages from other participants in the conversation.
Available customization methods:
drawNickname(textView: TextView, message: BaseMessage, messageUIParams: MessageUIParams)
Implementation Guide
Step 1: Create Custom Message Container
Create a custom container class that extends the appropriate base container:
Step 2: Create Custom Message Container Generator
Implement a custom generator to use your custom containers:
Step 3: Apply Custom Generator
Apply your custom generator to the conversation adapter:
JS
Customizing IncomingMessage SenderName Font Styles
This guide explains how to customize the font style of sender names displayed in IncomingMessage components in the Sendbird AI Agent React SDK.
Overview
While global typography customization is possible through the theme system, the recommended approach for customizing sender names is to create a custom SenderName component to avoid unintended side effects on other components.
Step 1: Create Custom Component
Create a custom component for precise control over sender name font styling:
Step 2: Apply Custom Component
Common Font Customizations
Here are some examples of different font style customizations you can apply:
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions