Skip to main content

Widget Documentation: LMFeedPostHeaderView

Widget: LMFeedPostHeaderView

The LMFeedPostHeaderView is a customizable header view for posts, supporting elements like author information, timestamps, pinned status, and menu actions with configurable styles and click listeners.

MethodDescription
setStyle(postHeaderViewStyle: LMFeedPostHeaderViewStyle)Applies the given style to the post header view.
setAuthorImage(user: LMFeedUserViewData)Sets the author's image.
setAuthorName(authorName: String)Sets the author's name.
setTimestamp(createdAtTimeStamp: Long)Sets the timestamp of the post.
setPostEdited(isEdited: Boolean)Sets whether the post has been edited.
setPinIcon(isPinned: Boolean)Sets whether the post is pinned.
setAuthorCustomTitle(customTitle: String)Sets a custom title for the author.
setAuthorFrameClickListener(listener: LMFeedOnClickListener)Registers a click listener for the author frame.
setMenuIconClickListener(listener: LMFeedOnClickListener)Registers a click listener for the menu icon.

View the code on GitHub

View Style: LMFeedPostHeaderViewStyle

The LMFeedPostHeaderViewStyle defines the appearance and layout properties for the LMFeedPostHeaderView, including configurations for author details, timestamps, and icons.

FieldDescriptionType
authorImageViewStyleConfigures the style for the author's image.LMFeedImageStyle
authorNameViewStyleConfigures the text style for the author's name.LMFeedTextStyle
timestampTextStyleConfigures the text style for the timestamp.LMFeedTextStyle
postEditedTextStyleConfigures the text style for the "Edited" label.LMFeedTextStyle
authorCustomTitleTextStyleConfigures the text style for the custom title of the author.LMFeedTextStyle
pinIconStyleConfigures the style for the pin icon.LMFeedIconStyle
menuIconStyleConfigures the style for the menu icon.LMFeedIconStyle
backgroundColorSpecifies the background color of the post header view.Int

View the code on GitHub