How to customize the typing indicator in the conversation #79
elliot-choic
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 customize the appearance and behavior of the typing indicator shown at the bottom of the conversation screen.
Guide & Snippet
iOS
Header
Android
Steps to Customize the Typing Indicator
1. Create a custom view that represents the typing indicator
You should create a view (
CustomTyingIndicator
) that visually represents the typing state.This view will be used in your custom
ViewHolder
.2. Create a
ViewHolder
that wraps the custom viewExtend
MessageViewHolder
and bind your custom view for the typing indicator.3. Extend
ConversationMessageListAdapter
and return your customViewHolder
Override
onCreateViewHolder
to detectVIEW_TYPE_TYPING_INDICATOR
and return the customViewHolder
.4. Register your custom adapter using
AIAgentAdapterProviders
Finally, inject the adapter into your AI Agent configuration:
JS
Header
// code block
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions