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.
| Method | Description |
|---|---|
| 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 Style: LMFeedPostHeaderViewStyle
The LMFeedPostHeaderViewStyle defines the appearance and layout properties for the LMFeedPostHeaderView, including configurations for author details, timestamps, and icons.
| Field | Description | Type |
|---|---|---|
| authorImageViewStyle | Configures the style for the author's image. | LMFeedImageStyle |
| authorNameViewStyle | Configures the text style for the author's name. | LMFeedTextStyle |
| timestampTextStyle | Configures the text style for the timestamp. | LMFeedTextStyle |
| postEditedTextStyle | Configures the text style for the "Edited" label. | LMFeedTextStyle |
| authorCustomTitleTextStyle | Configures the text style for the custom title of the author. | LMFeedTextStyle |
| pinIconStyle | Configures the style for the pin icon. | LMFeedIconStyle |
| menuIconStyle | Configures the style for the menu icon. | LMFeedIconStyle |
| backgroundColor | Specifies the background color of the post header view. | Int |