LMFeedActivityView
Widget: LMFeedActivityView
The LMFeedActivityView is a customizable view for displaying activity feed entries, supporting features like user images, activity content, timestamps, and badges with configurable styles.
| Method | Description |
|---|---|
| setStyle(activityViewStyle: LMFeedActivityViewStyle) | Applies the given style to the activity view. |
| setActivityContent(activityContent: String) | Sets the content of the activity. |
| setTimestamp(createdAtTimeStamp: Long) | Sets the timestamp of the activity. |
| setActivityRead(isRead: Boolean) | Marks the activity as read or unread. |
| setUserImage(user: LMFeedUserViewData) | Sets the user's image. |
| setPostTypeBadge(@LMFeedAttachmentType attachmentType: Int?) | Sets the badge indicating the type of post associated with the activity. |
View Style: LMFeedActivityViewStyle
The LMFeedActivityViewStyle defines the appearance and layout properties for the LMFeedActivityView, including configurations for user images, activity content, and badges.
| Field | Description | Type |
|---|---|---|
userImageViewStyle | Configures the style for the user image. | LMFeedImageStyle |
activityTextStyle | Configures the text style for the activity description. | LMFeedTextStyle |
postTypeBadgeStyle | Configures the style for the post type badge. | LMFeedImageStyle |
timestampTextStyle | Configures the text style for the timestamp. | LMFeedTextStyle |
readActivityBackgroundColor | Specifies the background color for read activities. | Int |
unreadActivityBackgroundColor | Specifies the background color for unread activities. | Int |