Set the Chat SDK Theme
If you want to use a custom theme for Chat SDK you need to make sure your theme inherits from the ChatSDKTheme:
Open your App's theme file in res -> values -> styles.xml
1
<resources>
2
<style name="AppTheme" parent="ChatSDKTheme">
3
</style>
4
</resources>
Copied!
Then you need to disable the default Chat SDK theme:
1
UIModule.config().overrideTheme();
Copied!
If you want to use a completely separate theme for Chat SDK then your main project, make a new theme that has the ChatSDKTheme as it's parent.
Then tell Chat SDK to use that theme:
1
UIModule.config().setTheme(R.style.CustomChatSDKTheme);
Copied!
Last modified 9mo ago
Copy link