Skip to main content

Screen: LMFeedEditPostFragment

LMFeedEditPostFragment provides an interface for editing existing posts in the LikeMinds feed system. It supports modifying text, images, videos, documents, and polls within a post.
GitHub Link to LMFeedEditPostFragment


View Style: LMFeedEditPostFragmentViewStyle

LMFeedEditPostFragmentViewStyle defines the visual style and structure of the LMFeedEditPostFragment. The following fields are available for customization:

Field NameDescriptionType
headerViewStyleStyle for the header of the edit post screen.LMFeedHeaderViewStyle
postHeaderViewStyleStyle for the post header view.LMFeedPostHeaderViewStyle
postComposerStyleStyle for the main post composer.LMFeedEditTextStyle
postHeadingComposerStyleStyle for the heading composer in posts.LMFeedEditTextStyle
postHeadingLimitTextStyleStyle for the heading character limit display.LMFeedTextStyle
progressBarStyleStyle for the progress bar used during edits.LMFeedProgressBarStyle
selectTopicsChipStyleStyle for the topic selection chip.LMFeedChipStyle
editTopicsChipStyleStyle for the edit topics chip.LMFeedChipStyle
disabledTopicsAlertDialogStyleStyle for the alert dialog when topics are disabled.LMFeedAlertDialogViewStyle

GitHub Link to LMFeedEditPostFragmentViewStyle


Customization available in LMFeedEditPostFragment

Header Customizations

  • customizeEditPostHeaderView(headerViewEditPost: LMFeedHeaderView): Allows customization of the edit post header.

Post Content Customizations

  • customizePostHeaderView(postHeader: LMFeedPostHeaderView): Customizes the post header.
  • customizePostComposer(etPostComposer: LMFeedEditText): Customizes the post composer for text content.
  • customizePostHeadingComposer(etPostHeadingComposer: LMFeedEditText): Customizes the heading composer in the post.
  • customizePostHeadingLimit(tvPostHeadingLimitTextView: LMFeedTextView): Customizes the character limit display for the heading.

Attachments Customizations

Progress Bar Customization

  • customizeEditPostProgressbar(progressBar: LMFeedProgressBar): Customizes the progress bar shown during post edits.

Interactions available in LMFeedEditPostFragment

Post Actions

  • onSavePostClicked(): Handles the save action for the edited post.

Media and Document Interactions

  • onPostDocumentMediaClicked(position: Int, parentPosition: Int, attachmentViewData: LMFeedAttachmentViewData): Handles clicks on document or media attachments within the post.