Widget Documentation: LMFeedPostActionHorizontalView
Widget: LMFeedPostActionHorizontalView
The LMFeedPostActionHorizontalView is a customizable horizontal action bar for posts, supporting actions like liking, commenting, saving, and sharing with configurable styles and click listeners.
| Method | Description |
|---|---|
| setStyle(postActionViewStyle: LMFeedPostActionViewStyle) | Applies the given style to the post action view. |
| setLikesCount(likesCount: String) | Sets the count of likes. |
| setCommentsCount(commentsCount: String) | Sets the count of comments. |
| setLikesIcon(isLiked: Boolean = false) | Configures the state of the "Like" icon. |
| setLikeIconClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the "Like" icon. |
| setLikesCountClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the likes count. |
| setCommentsCountClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the comments count. |
| setSaveIcon(isSaved: Boolean = false) | Configures the state of the "Save" icon. |
| setSaveIconListener(listener: LMFeedOnClickListener) | Registers a click listener for the "Save" icon. |
| setShareIconListener(listener: LMFeedOnClickListener) | Registers a click listener for the "Share" icon. |
View Style: LMFeedPostActionViewStyle
The LMFeedPostActionViewStyle defines the appearance and layout properties for the LMFeedPostActionHorizontalView, including text and icon configurations.
| Field | Description | Type |
|---|---|---|
| likeIconStyle | Defines the style of the "Like" icon. | LMFeedIconStyle |
| likeTextStyle | Configures the text style for the "Like" option. | LMFeedTextStyle |
| commentTextStyle | Configures the text style for the "Comments" option. | LMFeedTextStyle |
| saveIconStyle | Defines the style of the "Save" icon. | LMFeedIconStyle |
| shareIconStyle | Defines the style of the "Share" icon. | LMFeedIconStyle |
| menuIconStyle | Defines the style of the "Menu" icon. | LMFeedIconStyle |
| backgroundColor | Specifies the background color of the view. | Int |