Skip to main content
The CometChat Android UI Kit provides prebuilt, customizable UI components for adding chat, voice, and video calling to any Android app. Every component handles its own data fetching, real-time listeners, and state — so you drop it in and it works. It ships in two flavors that share the same core (ViewModels, repositories, events), so you get identical behavior whichever you choose:
  • Jetpack Compose — native Material 3 composables for modern, Compose-first apps.
  • Kotlin (XML Views) — drop-in Views for existing XML layout–based apps.

Get Started

Every integration starts the same way — install the SDK, initialize, and log in — then you build the UI with your chosen toolkit. Start with the prerequisites, then pick a path:

Prerequisites & Setup

App credentials, Gradle install, init(), and login() — shared by both toolkits

Jetpack Compose

Build your chat UI with native Material 3 composables

Kotlin (XML Views)

Build your chat UI with drop-in XML Views

Try It

See the UI Kit in action before you write any code:

Google Play Demo

Try the full chat experience on your device

Sample App

Clone, add your credentials, and start building
Download the CometChat demo app from Google Play: Or scan the QR code to install directly:

Explore

Components

Browse all prebuilt UI components

Features

Chat, calling, AI, and extensions

Theming

Colors, fonts, dark mode, and custom styling

Guides

Threaded messages, new chat, search, and more

Key Concepts

Essential terminology and platform features

Architecture

How components, ViewModels, and data flow fit together

Upgrading from 6.3.0

UI Kit 6.4.0 adds RTL support. Libraries compiled against 6.3.0 keep working without a rebuild, and existing calls compile unchanged, except Views bubble-margin calls that use named arguments (below). A few behaviors change:
  • android:supportsRtl. The Kotlin (XML Views) UI Kit no longer adds it to your app. Add android:supportsRtl="true" to your <application> to keep RTL layouts.
  • CometChatLocalize.setLocale changes the UI Kit’s language only, not its layout direction. To show Arabic right to left, set the app’s language with AppCompatDelegate.setApplicationLocales, or call CometChatUIKit.setLayoutDirection(CometChatLayoutDirection.RTL).
  • CometChatLocalize.isRtl(context) is deprecated, and is removed in the next major version. Read view.layoutDirection (Views) or LocalLayoutDirection.current (Compose) instead.
  • Group action lines, such as “Andrew added George”, are translated and say “You” for the logged-in user. To change the wording, override the keys in Group Action Messages.
  • Short messages, such as offline notices and download messages, appear as snackbars instead of toasts.
  • Bubble margins (Views). setBubbleMargin, setLeftBubbleMargin and setRightBubbleMargin on Message List and Thread Header take start and end instead of left and right, so the margins mirror in RTL. Calls that pass the values by position compile unchanged; rename left = and right = named arguments to start = and end =.
See Upgrading From an Earlier Version for the full list.

Upgrading from 6.2.x

UI Kit 6.3.0 brings in Chat SDK 5.1.2. Two changes can affect your own code, whether or not you turn on offline support:
  • Pin, save and conversation-pin callbacks. The SDK no longer calls onMessagePinned, onMessageUnpinned, onMessageSaved, onMessageUnsaved, onConversationPinned or onConversationUnpinned on the device that made the change. If your own UI updates from those callbacks, update it in the call’s onSuccess instead, or observe the UI Kit’s MessagePinned / MessageUnpinned / MessageSaved / MessageUnsaved events. The UI Kit’s components already do this.
  • Unit tests. If your tests stub fetchNext(any()) or fetchPrevious(any()) on SDK request classes such as ConversationsRequest, give the matcher a type: the SDK now has a second overload of these methods.

Resources

Sample App

Working reference app

Figma

Design resources and prototyping

Migration Guide

Upgrading from v5

Troubleshooting

Common issues and fixes

Support

Open a support ticket