How to add a left button to the conversation list header #76
elliot-choic
announced in
Conversation List
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 customize the conversation list header to add a left-side button by creating a custom view
Guide & Snippet
iOS
Header
Android
Steps to Customize the Header
1. Create a Custom View
Create a view class (e.g.,
CustomConversationListHeaderView
) that:applyTheme(...)
.draw(...)
.setLeftButtonClickListener(...)
.2. Create a Custom Component
Create a component class that extends
ConversationListHeaderComponent
(e.g.,CustomConversationListHeaderComponent
) and overrideonCreateView(...)
to return your custom view.2. Register the Component via AIAgentModuleProviders
JS
Header
// code block
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions