User Interface Preview

Key Components
- Chat Header – Displays user/group name, profile image, and status.
- Message List – Shows chat history and new messages.
- Message Composer – Allows users to send messages, media, and reactions.
Step-by-Step Guide
Step 1: Set Up Conversation Activity
Create an Activity -ConversationActivity.kt to manage and display the chat UI.
Layout
Define the layout using theCometChatConversations component:
activity_conversations.xml
Activity
Initialize and handle conversation clicks:- Kotlin
- Java
ConversationActivity.kt
You must use an activity that supports the lifecycle API, such as:
AppCompatActivityComponentActivityFragmentActivity
Step 2: Set Up Message Activity
Create an Activity -MessageActivity.kt to manage and display the chat UI.
Layout
activity_message.xml
Activity
Use the user/group passed from the conversation click:- Kotlin
- Java
MessageActivity.kt
Step 3: Update MainActivity
Update theMainActivity to navigate to the MessageActivity:
- Kotlin
- Java
MainActivity.kt
Running the Project
Once the components are configured, build and run the app:Application class.
Next Steps
Enhance the User Experience
- Advanced Customizations – Personalize the chat UI to align with your brand.