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.
Method | Description |
---|---|
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 Style: LMFeedPostTopResponseViewStyle
The LMFeedPostTopResponseViewStyle
defines the appearance and layout properties for the LMFeedPostTopResponseView
, including configurations for text, images, and background.
Field | Description | Type |
---|---|---|
titleTextStyle | Configures the text style for the title. | LMFeedTextStyle |
authorImageViewStyle | Configures the style for the author's image. | LMFeedImageStyle |
authorNameTextStyle | Configures the text style for the author's name. | LMFeedTextStyle |
timestampTextStyle | Configures the text style for the timestamp. | LMFeedTextStyle |
contentTextStyle | Configures the text style for the content. | LMFeedTextStyle |
backgroundColor | Specifies the background color of the top response view. | Int |