> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-audit-mechanical-fixes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Message Bubble Styling

> Configure and style incoming, outgoing, and specific message bubbles in your Android UI Kit.

<Accordion title="AI Integration Quick Reference">
  | Field            | Value                                                                                                                                                                     |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Kotlin XML Views | Override XML styles extending `CometChatIncomingMessageBubbleStyle` / `CometChatOutgoingMessageBubbleStyle` in `themes.xml`                                               |
  | Jetpack Compose  | Pass `CometChatMessageListStyle.default().copy()` with nested bubble styles to `CometChatMessageList`                                                                     |
  | Hub styles       | Incoming and Outgoing bubble styles act as central hubs for per-type bubble customization                                                                                 |
  | Per-type styles  | Text, Image, Audio, Video, File, Sticker, Poll, Collaborative, Meet Call, Delete, Action, Call Action                                                                     |
  | Related          | [Theme Introduction](/ui-kit/android/v6/theme-introduction) · [Component Styling](/ui-kit/android/v6/component-styling) · [Message List](/ui-kit/android/v6/message-list) |
</Accordion>

Configure and style incoming, outgoing, and specific message bubbles.

***

## Styling Architecture

Message bubbles follow a hub-and-spoke pattern:

1. **Hub styles** — `IncomingMessageBubbleStyle` and `OutgoingMessageBubbleStyle` control the base bubble appearance
2. **Per-type styles** — Text, Image, Audio, etc. are nested inside the hub styles

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/W073onWd9v58kwAH/images/90e70e8b-incoming_outgoing_bubble-534f3104b6c087d0b2db810b9e69e216.png?fit=max&auto=format&n=W073onWd9v58kwAH&q=85&s=2335572e62c9bdbb5663e241849452b7" width="724" height="164" data-path="images/90e70e8b-incoming_outgoing_bubble-534f3104b6c087d0b2db810b9e69e216.png" />
</Frame>

### Global Setup

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <!-- Hub for Incoming Messages -->
    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatMessageBubbleBackgroundColor">#FEEDE1</item>
    </style>

    <!-- Hub for Outgoing Messages -->
    <style name="CustomOutgoingBubble" parent="CometChatOutgoingMessageBubbleStyle">
        <item name="cometchatMessageBubbleBackgroundColor">#F76808</item>
    </style>

    <!-- Connect to AppTheme -->
    <style name="AppTheme" parent="CometChatTheme.DayNight">
        <item name="cometchatIncomingMessageBubbleStyle">@style/CustomIncomingBubble</item>
        <item name="cometchatOutgoingMessageBubbleStyle">@style/CustomOutgoingBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    CometChatMessageList(
        style = CometChatMessageListStyle.default().copy(
            incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
                backgroundColor = Color(0xFFFEEDE1)
            ),
            outgoingMessageBubbleStyle = CometChatOutgoingMessageBubbleStyle.default().copy(
                backgroundColor = Color(0xFFF76808)
            )
        )
    )
    ```
  </Tab>
</Tabs>

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/R68qChTpDg6vLLxX/images/68dfc288-incoming_bubble_styling-41b09e86811d02c5b9c62cd135e23188.png?fit=max&auto=format&n=R68qChTpDg6vLLxX&q=85&s=72bd361e354c1fcc885022d12d25d83d" width="1203" height="1321" data-path="images/68dfc288-incoming_bubble_styling-41b09e86811d02c5b9c62cd135e23188.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/vmiPTG90MErM-yzE/images/40b99d2c-outgoing_bubble_styling-3762ae90255a5e762e4d5efad2465cf6.png?fit=max&auto=format&n=vmiPTG90MErM-yzE&q=85&s=49936cf96534beaa4626fd5c40971be5" width="1203" height="1321" data-path="images/40b99d2c-outgoing_bubble_styling-3762ae90255a5e762e4d5efad2465cf6.png" />
</Frame>

***

## Core Message Bubbles

### Text Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/W073onWd9v58kwAH/images/94f47151-custom_text_bubble-31254c676ff87f3e25ecb4f89f5f5ffc.png?fit=max&auto=format&n=W073onWd9v58kwAH&q=85&s=b4e4ee83fafc137cff42c3f933ade45d" width="1200" height="396" data-path="images/94f47151-custom_text_bubble-31254c676ff87f3e25ecb4f89f5f5ffc.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomIncomingTextBubble" parent="CometChatIncomingTextMessageBubbleStyle">
        <item name="cometchatTextBubbleBackgroundColor">#FEEDE1</item>
    </style>

    <style name="CustomOutgoingTextBubble" parent="CometChatOutgoingTextBubbleStyle">
        <item name="cometchatTextBubbleBackgroundColor">#F76808</item>
    </style>

    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatTextBubbleStyle">@style/CustomIncomingTextBubble</item>
    </style>

    <style name="CustomOutgoingBubble" parent="CometChatOutgoingMessageBubbleStyle">
        <item name="cometchatTextBubbleStyle">@style/CustomOutgoingTextBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    // Inside CometChatMessageListStyle
    incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
        textBubbleStyle = CometChatTextBubbleStyle.default().copy(
            backgroundColor = Color(0xFFFEEDE1)
        )
    ),
    outgoingMessageBubbleStyle = CometChatOutgoingMessageBubbleStyle.default().copy(
        textBubbleStyle = CometChatTextBubbleStyle.default().copy(
            backgroundColor = Color(0xFFF76808)
        )
    )
    ```
  </Tab>
</Tabs>

### Image Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/2n7DD5y6r-nNza4C/images/050d471a-custom_image_bubble-cbf84ceb47eb0f7b6a0c27689fc911b9.png?fit=max&auto=format&n=2n7DD5y6r-nNza4C&q=85&s=33f8ea3293d1153fdd3fbcbf08262048" width="1200" height="1392" data-path="images/050d471a-custom_image_bubble-cbf84ceb47eb0f7b6a0c27689fc911b9.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomIncomingImageBubble" parent="CometChatIncomingImageMessageBubbleStyle">
        <item name="cometchatImageBubbleBackgroundColor">#FEEDE1</item>
    </style>

    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatImageBubbleStyle">@style/CustomIncomingImageBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
        imageBubbleStyle = CometChatImageBubbleStyle.default().copy(
            backgroundColor = Color(0xFFFEEDE1)
        )
    )
    ```
  </Tab>
</Tabs>

### Audio Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/GDJ11KCyKQ4fI4Ns/images/a1a5851e-custom_audio_bubble-7435f7e797b4c409156bc0df3c0bc077.png?fit=max&auto=format&n=GDJ11KCyKQ4fI4Ns&q=85&s=02563c3ad09440beb6dda3fb5c8755d5" width="1200" height="640" data-path="images/a1a5851e-custom_audio_bubble-7435f7e797b4c409156bc0df3c0bc077.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomIncomingAudioBubble" parent="CometChatIncomingAudioBubbleStyle">
        <item name="cometchatAudioBubbleAudioWaveColor">#F76808</item>
        <item name="cometchatAudioBubblePlayIconTint">#F76808</item>
        <item name="cometchatAudioBubbleBackgroundColor">#FEEDE1</item>
    </style>

    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatAudioBubbleStyle">@style/CustomIncomingAudioBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
        audioBubbleStyle = CometChatAudioBubbleStyle.default().copy(
            playIconTint = Color(0xFFF76808),
            backgroundColor = Color(0xFFFEEDE1)
        )
    )
    ```
  </Tab>
</Tabs>

### Video Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/DH2AGzRSUCG5tT9H/images/b4e3e6a4-custom_video_bubble-105a5b18f4021eafdf4266bedce930d7.png?fit=max&auto=format&n=DH2AGzRSUCG5tT9H&q=85&s=9727646c6f3ccd066e401fb7aa533b33" width="1200" height="1016" data-path="images/b4e3e6a4-custom_video_bubble-105a5b18f4021eafdf4266bedce930d7.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomIncomingVideoBubble" parent="CometChatIncomingVideoBubbleStyle">
        <item name="cometchatVideoBubbleBackgroundColor">#FEEDE1</item>
        <item name="cometchatVideoBubblePlayIconTint">#F76808</item>
    </style>

    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatVideoBubbleStyle">@style/CustomIncomingVideoBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
        videoBubbleStyle = CometChatVideoBubbleStyle.default().copy(
            backgroundColor = Color(0xFFFEEDE1),
            playIconTint = Color(0xFFF76808)
        )
    )
    ```
  </Tab>
</Tabs>

### File Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/vmiPTG90MErM-yzE/images/3dffd2e7-custom_file_bubble-08f741eb4ad1e4a5098a5b65431f895b.png?fit=max&auto=format&n=vmiPTG90MErM-yzE&q=85&s=19693a705bbf7b56a9ff93f6168f2123" width="1200" height="632" data-path="images/3dffd2e7-custom_file_bubble-08f741eb4ad1e4a5098a5b65431f895b.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomIncomingFileBubble" parent="CometChatIncomingFileBubbleStyle">
        <item name="cometchatFileBubbleBackgroundColor">#FEEDE1</item>
        <item name="cometchatFileBubbleFileDownloadIconTint">#F76808</item>
    </style>

    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatFileBubbleStyle">@style/CustomIncomingFileBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
        fileBubbleStyle = CometChatFileBubbleStyle.default().copy(
            backgroundColor = Color(0xFFFEEDE1),
            downloadIconTint = Color(0xFFF76808)
        )
    )
    ```
  </Tab>
</Tabs>

### Sticker Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/axXRyft3PU-ANo3t/images/8d48d80f-custom_sticker_bubble-5fac9a1c34cbecfeb3b4015755805309.png?fit=max&auto=format&n=axXRyft3PU-ANo3t&q=85&s=8ec1254799e9fe24dc0732286dfa9d1f" width="1200" height="1128" data-path="images/8d48d80f-custom_sticker_bubble-5fac9a1c34cbecfeb3b4015755805309.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomStickerBubble" parent="CometChatStickerBubbleStyle">
        <item name="cometchatStickerBubbleBackgroundColor">#FEEDE1</item>
    </style>

    <style name="CustomIncomingBubble" parent="CometChatIncomingMessageBubbleStyle">
        <item name="cometchatStickerBubbleStyle">@style/CustomStickerBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    incomingMessageBubbleStyle = CometChatIncomingMessageBubbleStyle.default().copy(
        stickerBubbleStyle = CometChatStickerBubbleStyle.default().copy(
            backgroundColor = Color(0xFFFEEDE1)
        )
    )
    ```
  </Tab>
</Tabs>

### Poll Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/lGTe4SBrdnJKJDoJ/images/6c80d571-custom_poll_bubble-02042749c5c6030498163b51be103658.png?fit=max&auto=format&n=lGTe4SBrdnJKJDoJ&q=85&s=856f4dff2a316c9f31be7e3a6da6b504" width="1200" height="1412" data-path="images/6c80d571-custom_poll_bubble-02042749c5c6030498163b51be103658.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomOutgoingPollBubble" parent="CometChatOutgoingPollBubbleStyle">
        <item name="cometchatPollBubbleBackgroundColor">#F76808</item>
        <item name="cometchatPollBubbleProgressBackgroundColor">#FBAA75</item>
    </style>

    <style name="CustomOutgoingBubble" parent="CometChatOutgoingMessageBubbleStyle">
        <item name="cometchatPollBubbleStyle">@style/CustomOutgoingPollBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    outgoingMessageBubbleStyle = CometChatOutgoingMessageBubbleStyle.default().copy(
        pollBubbleStyle = CometChatPollBubbleStyle.default().copy(
            backgroundColor = Color(0xFFF76808),
            progressBackgroundColor = Color(0xFFFBAA75)
        )
    )
    ```
  </Tab>
</Tabs>

### Collaborative Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/tu3JK9T7iskLt8fa/images/4a4f308c-custom_collaborative_bubble-882924e176c97b69879fc4a4db812be4.png?fit=max&auto=format&n=tu3JK9T7iskLt8fa&q=85&s=11c74afd4c3b4feb83653bdf0f0e28cc" width="1200" height="1336" data-path="images/4a4f308c-custom_collaborative_bubble-882924e176c97b69879fc4a4db812be4.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomCollaborativeBubble" parent="CometChatOutgoingCollaborativeBubbleStyle">
        <item name="cometchatCollaborativeBubbleBackgroundColor">#F76808</item>
        <item name="cometchatCollaborativeBubbleSeparatorColor">#FBAA75</item>
    </style>

    <style name="CustomOutgoingBubble" parent="CometChatOutgoingMessageBubbleStyle">
        <item name="cometchatCollaborativeBubbleStyle">@style/CustomCollaborativeBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    outgoingMessageBubbleStyle = CometChatOutgoingMessageBubbleStyle.default().copy(
        collaborativeBubbleStyle = CometChatCollaborativeBubbleStyle.default().copy(
            backgroundColor = Color(0xFFF76808),
            separatorColor = Color(0xFFFBAA75)
        )
    )
    ```
  </Tab>
</Tabs>

### Meet Call Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/KCkOxYBmiffdHQgV/images/2c71f1e5-custom_meet_call_bubble-ea1e86f24d9572d4f32e9d07df84c004.png?fit=max&auto=format&n=KCkOxYBmiffdHQgV&q=85&s=b7069a090d536ba02e9ffd5a80122265" width="1200" height="600" data-path="images/2c71f1e5-custom_meet_call_bubble-ea1e86f24d9572d4f32e9d07df84c004.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomMeetCallBubble" parent="CometChatOutgoingMeetCallBubbleStyle">
        <item name="cometchatMeetCallBubbleBackgroundColor">#F76808</item>
        <item name="cometchatMeetCallBubbleCallIconTint">#F76808</item>
    </style>

    <style name="CustomOutgoingBubble" parent="CometChatOutgoingMessageBubbleStyle">
        <item name="cometchatMeetCallBubbleStyle">@style/CustomMeetCallBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    outgoingMessageBubbleStyle = CometChatOutgoingMessageBubbleStyle.default().copy(
        meetCallBubbleStyle = CometChatMeetCallBubbleStyle.default().copy(
            backgroundColor = Color(0xFFF76808),
            callIconTint = Color(0xFFF76808)
        )
    )
    ```
  </Tab>
</Tabs>

### Delete Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/PArSPrMnmQCdJnO3/images/d323f495-custom_delete_bubble-9504ef572fcf69ada7c0ae9c1025f468.png?fit=max&auto=format&n=PArSPrMnmQCdJnO3&q=85&s=e346061b7a8abcdf975a413670f3a4a6" width="1200" height="396" data-path="images/d323f495-custom_delete_bubble-9504ef572fcf69ada7c0ae9c1025f468.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomDeleteBubble" parent="CometChatOutgoingDeleteBubbleStyle">
        <item name="cometchatMessageBubbleBackgroundColor">#F76808</item>
    </style>

    <style name="CustomOutgoingBubble" parent="CometChatOutgoingMessageBubbleStyle">
        <item name="cometchatDeleteBubbleStyle">@style/CustomDeleteBubble</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    outgoingMessageBubbleStyle = CometChatOutgoingMessageBubbleStyle.default().copy(
        deleteBubbleStyle = CometChatDeleteBubbleStyle.default().copy(
            backgroundColor = Color(0xFFF76808)
        )
    )
    ```
  </Tab>
</Tabs>

***

## List-Level Bubbles

These bubbles are tied to the Message List style, not the Incoming/Outgoing hubs.

### Call Action Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/vOzK2L8opJn2Kw6c/images/2680816a-custom_call_action_bubble-273452145034c0846b211e2ed53bc6df.png?fit=max&auto=format&n=vOzK2L8opJn2Kw6c&q=85&s=8750fd9139f58bb842a9205ce78f3dd4" width="1200" height="1304" data-path="images/2680816a-custom_call_action_bubble-273452145034c0846b211e2ed53bc6df.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomCallActionBubble" parent="CometChatCallActionBubbleStyle">
        <item name="cometchatCallActionBubbleBackgroundColor">#FEEDE1</item>
        <item name="cometchatCallActionBubbleTextColor">#F76808</item>
        <item name="cometchatCallActionBubbleIconTint">#F76808</item>
    </style>

    <style name="CustomMessageListStyle" parent="CometChatMessageListStyle">
        <item name="cometchatMessageListCallActionBubbleStyle">@style/CustomCallActionBubble</item>
    </style>

    <style name="AppTheme" parent="CometChatTheme.DayNight">
        <item name="cometchatMessageListStyle">@style/CustomMessageListStyle</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    CometChatMessageList(
        style = CometChatMessageListStyle.default().copy(
            callActionBubbleStyle = CometChatCallActionBubbleStyle.default().copy(
                backgroundColor = Color(0xFFFEEDE1),
                textColor = Color(0xFFF76808),
                iconTint = Color(0xFFF76808)
            )
        )
    )
    ```
  </Tab>
</Tabs>

### Action Bubble

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-audit-mechanical-fixes/Kgc1yhSJ8H43ZuSx/images/5ef64cf9-custom_action_bubble-c026ed34c02477f513b78475818781bc.png?fit=max&auto=format&n=Kgc1yhSJ8H43ZuSx&q=85&s=c420a8fa82474d564899e7a969053c22" width="1200" height="476" data-path="images/5ef64cf9-custom_action_bubble-c026ed34c02477f513b78475818781bc.png" />
</Frame>

<Tabs>
  <Tab title="Kotlin (XML Views)">
    ```xml themes.xml lines theme={null}
    <style name="CustomActionBubble" parent="CometChatActionBubbleStyle">
        <item name="cometchatActionBubbleBackgroundColor">#FEEDE1</item>
        <item name="cometchatActionBubbleTextColor">#F76808</item>
    </style>

    <style name="CustomMessageListStyle" parent="CometChatMessageListStyle">
        <item name="cometchatMessageListActionBubbleStyle">@style/CustomActionBubble</item>
    </style>

    <style name="AppTheme" parent="CometChatTheme.DayNight">
        <item name="cometchatMessageListStyle">@style/CustomMessageListStyle</item>
    </style>
    ```
  </Tab>

  <Tab title="Jetpack Compose">
    ```kotlin lines theme={null}
    CometChatMessageList(
        style = CometChatMessageListStyle.default().copy(
            actionBubbleStyle = CometChatActionBubbleStyle.default().copy(
                backgroundColor = Color(0xFFFEEDE1),
                textColor = Color(0xFFF76808)
            )
        )
    )
    ```
  </Tab>
</Tabs>
