Skip to main content

Widget Documentation: LMFeedPostTopResponseView

Widget: LMFeedPostTopResponseView

The LMFeedPostTopResponseView is a customizable view for displaying a top response, including author details, content, and timestamps, with configurable styles and click listeners.

MethodDescription
setStyle(postTopResponseViewStyle: LMFeedPostTopResponseViewStyle)Applies the given style to the top response view.
setTopResponseTitle(title: String)Sets the title of the top response.
setAuthorImage(user: LMFeedUserViewData)Sets the author's image.
setAuthorName(authorName: String)Sets the author's name.
setTopResponseContent(content: String)Sets the content of the top response.
setTimestamp(createdAtTimeStamp: Long)Sets the timestamp of the top response.
setAuthorFrameClickListener(listener: LMFeedOnClickListener)Registers a click listener for the author frame.
setTopResponseClickListener(listener: LMFeedOnClickListener)Registers a click listener for the top response.

View the code on GitHub

View Style: LMFeedPostTopResponseViewStyle

The LMFeedPostTopResponseViewStyle defines the appearance and layout properties for the LMFeedPostTopResponseView, including configurations for text, images, and background.

FieldDescriptionType
titleTextStyleConfigures the text style for the title.LMFeedTextStyle
authorImageViewStyleConfigures the style for the author's image.LMFeedImageStyle
authorNameTextStyleConfigures the text style for the author's name.LMFeedTextStyle
timestampTextStyleConfigures the text style for the timestamp.LMFeedTextStyle
contentTextStyleConfigures the text style for the content.LMFeedTextStyle
backgroundColorSpecifies the background color of the top response view.Int

View the code on GitHub