Skip to main content

Widget Documentation: LMFeedPostQnAActionHorizontalView

Widget: LMFeedPostQnAActionHorizontalView

The LMFeedPostQnAActionHorizontalView is a customizable horizontal action bar for Q&A posts, supporting actions like upvoting, commenting, saving, and sharing with configurable styles and click listeners.

MethodDescription
setStyle(postActionViewStyle: LMFeedPostActionViewStyle)Applies the given style to the post action view.
setUpvoteText(upvoteText: String)Sets the text for the "Upvote" option.
setUpvoteCount(upvoteCount: String)Sets the count of upvotes.
setCommentsCount(commentsCount: String)Sets the count of comments.
setUpvoteIcon(isUpvoted: Boolean = false)Configures the state of the "Upvote" icon.
setSaveIcon(isSaved: Boolean = false)Configures the state of the "Save" icon.
setUpvoteIconClickListener(listener: LMFeedOnClickListener)Registers a click listener for the "Upvote" icon.
setUpvoteCountClickListener(listener: LMFeedOnClickListener)Registers a click listener for the upvote count.
setCommentsCountClickListener(listener: LMFeedOnClickListener)Registers a click listener for the comments count.
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