Skip to main content

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.

MethodDescription
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 the code on GitHub

View Style: LMFeedPostActionViewStyle

The LMFeedPostActionViewStyle defines the appearance and layout properties for the LMFeedPostActionHorizontalView, including text and icon configurations.

FieldDescriptionType
likeIconStyleDefines the style of the "Like" icon.LMFeedIconStyle
likeTextStyleConfigures the text style for the "Like" option.LMFeedTextStyle
commentTextStyleConfigures the text style for the "Comments" option.LMFeedTextStyle
saveIconStyleDefines the style of the "Save" icon.LMFeedIconStyle
shareIconStyleDefines the style of the "Share" icon.LMFeedIconStyle
menuIconStyleDefines the style of the "Menu" icon.LMFeedIconStyle
backgroundColorSpecifies the background color of the view.Int

View the code on GitHub