Skip to main content
CometChatAvatar component displays an image or user’s avatar with fallback to the first two letters of the username or group’s icon with fallback to the first two letter of the group name.

How to integrate CometChatAvatar ?

Since CometChatAvatar is a custom view, it can be added directly in the layout file or you can use it in Java. CometChatAvatar includes various attributes and methods to customize its UI.

Usage in XML

XML Attributes

Methods

AvatarStyle