🤖
Android
  • Chat SDK Android
  • Getting Started
    • Chat SDK Quickstart
    • Add the Chat SDK to a Firebase app
    • Add the Chat SDK to a non-Firebase app
  • Setup
    • Add Chat SDK to your project
    • Firebase Setup
    • Chat SDK Initialization
    • Set the Chat SDK Theme
    • Enable Location Messages
    • Authentication Screen
    • Add Additional Modules
    • Module Configuration
    • Proguard
  • API
    • Overriding Activities and Fragments
    • Events
    • Theming
    • Customizing the Icons
    • Tab Customization
    • Add a Chat Option
    • Message Customization
    • Integrating Chat SDK User profiles with your app
    • Overriding the Push Notification Handler
    • Handling Structured Meta Data
  • Chat SDK v4
    • Development Guide
    • Updating from v4 to v5
Powered by GitBook
On this page

Was this helpful?

  1. Setup

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

<resources>
    <style name="AppTheme" parent="ChatSDKTheme">
    </style>
</resources>

Then you need to disable the default Chat SDK theme:

UIModule.config().overrideTheme();

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:

UIModule.config().setTheme(R.style.CustomChatSDKTheme);
PreviousChat SDK InitializationNextEnable Location Messages

Last updated 4 years ago

Was this helpful?