How to add bottom inset to the ListView in the Conversation List #96
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.
-
Versions
Summary
This guide shows how to apply bottom inset (padding or margin) to the ListView in the ConversationList screen. This is useful when you need visual spacing between the last conversation item and the footer.
Guide & Snippet
iOS
Header
Android
Steps to Add Bottom Inset to ListView
1. Create a Custom ConversationListModule
To apply a bottom margin to the ListView, extend ConversationListModule and override onCreateContentView.
Wrap the list inside a FrameLayout and apply bottom margin via LayoutParams.
2. Register the Custom Module in AIAgentModuleProviders
You must register the custom module before launching the messenger.
JS
Header
// code block
Reference
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions