Skip to main content
Version: v4

Text Bubble

CometChatTextBubble is the content view shown for TextMessage.

Properties

NameTypeDescription
textstringText to be displayed
textStyleTextBubbleStyleStyling properties and values of the Text bubble element

TextBubbleStyle

NameDescription
textFontSets all the different properties of font for the text. Reference link
textColorSets the foreground color of the text.

Usage

import '@cometchat/uikit-elements'; //import the web elements package

//use the element
<cometchat-text-bubble text="Hey, there!!"></cometchat-text-bubble>

Usage

<com.cometchat.chatuikit.shared.views.CometChatTextBubble.CometChatTextBubble
android:id="@+id/text_bubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
CometChatTextBubble cometChatTextBubble=view.findViewById(R.id.text_bubble);
cometChatTextBubble.setText("Keep calm and chat on!");