Theming
How to customize the look and feel of Chat SDK for Android
The appearance of the Chat SDK can easily be customized:
Use a custom theme
Change the color scheme
Change the icons
Customize activities and fragments
Use a custom theme
Add a theme to your app:
In the AndroidManifest.xml
<application
android:theme="@style/YouTheme"To force the Chat SDK to use your app's theme you first need to make sure your theme inherits from the Chat SDK theme:
<style name="YourTheme" parent="ChatSDKTheme">Then:
UIModule.config().overrideTheme();Alternatively, if you want to add a separate theme to the Chat SDK, use the following:
UIModule.config().setTheme(R.style.CustomChatSDKTheme);Make sure this theme also uses ChatSDKTheme as it's parent.
Change the color scheme
Chat SDK comes with a number of attributes that you can override to customize the color scheme:
In your theme add:
Here is a full list of the available attributes:
Styling the ChatView using ChatKit
Chat SDK also uses ChatKit which has its own stylable attributes:
Last updated
Was this helpful?