For the complete documentation index, see llms.txt. This page is also available as Markdown.

Theming

How to customize the look and feel of Chat SDK for Android

The appearance of the Chat SDK can easily be customized:

  1. Use a custom theme

  2. Change the color scheme

  3. Change the icons

  4. 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