Skip to main content

Screen: LMFeedSearchFragment

The LMFeedSearchFragment provides an interface for searching posts within the LikeMinds feed system. It enables users to search for specific content and interact with the search results, such as liking, saving, or sharing posts.

GitHub Link to LMFeedSearchFragment


View Style: LMFeedSearchFragmentViewStyle

The LMFeedSearchFragmentViewStyle defines the visual style and structure of the fragment. Below are the customizable fields:

Field NameDescriptionType
feedSearchBarViewStyleStyle for the search bar in the feed search screen.LMFeedSearchBarViewStyle
noSearchResultLayoutViewStyleStyle for the "no search results" layout.LMFeedNoEntityLayoutViewStyle
backgroundColorBackground color for the search fragment.Int

GitHub Link to LMFeedSearchFragmentViewStyle


Customization Available in LMFeedSearchFragment

Search Bar and Layout Customizations

  • customizeFeedSearchBarView(searchBarView: LMFeedSearchBarView)
    Customizes the search bar in the feed search fragment.
  • customizeNoSearchResultLayout(layoutNoResult: LMFeedNoEntityLayoutView)
    Customizes the layout shown when no search results are found.
  • customizeSearchListView(rvSearchListView: LMFeedSearchListView)
    Customizes the list view displaying search results.

Interactions Available in LMFeedSearchFragment

Post Content Interactions

  • onPostContentClicked(position: Int, postViewData: LMFeedPostViewData)
    Opens the post content.
  • onPostLikeClicked(position: Int, postViewData: LMFeedPostViewData)
    Likes a post.
  • onPostLikesCountClicked(position: Int, postViewData: LMFeedPostViewData)
    Displays the likes count on a post.
  • onPostCommentsCountClicked(position: Int, postViewData: LMFeedPostViewData)
    Displays the comments count on a post.
  • onPostSaveClicked(position: Int, postViewData: LMFeedPostViewData)
    Saves a post.
  • onPostShareClicked(position: Int, postViewData: LMFeedPostViewData)
    Shares a post.
  • onPostContentLinkClicked(url: String)
    Handles clicks on links within the post content.

Media Interactions

  • onPostImageMediaClicked(position: Int, postViewData: LMFeedPostViewData)
    Opens image media in the post.
  • onPostVideoMediaClicked(position: Int, postViewData: LMFeedPostViewData)
    Opens video media in the post.
  • onPostLinkMediaClicked(position: Int, postViewData: LMFeedPostViewData)
    Opens linked media in the post.

Poll Interactions

  • onPostPollTitleClicked(position: Int, postViewData: LMFeedPostViewData)
    Opens the poll title for details.
  • onPostAddPollOptionClicked(position: Int, postViewData: LMFeedPostViewData)
    Adds a new poll option.
  • onPostSubmitPollVoteClicked(position: Int, postViewData: LMFeedPostViewData)
    Submits a poll vote.
  • onPostEditPollVoteClicked(position: Int, postViewData: LMFeedPostViewData)
    Edits a submitted poll vote.
  • onPostAnswerPromptClicked(position: Int, postViewData: LMFeedPostViewData)
    Interacts with the answer prompt for a post.

Post Management Interactions

  • onPostHeadingClicked(position: Int, postViewData: LMFeedPostViewData)
    Opens the post heading for detailed view.
  • onPostHeadingSeeMoreClicked(position: Int, postViewData: LMFeedPostViewData)
    Expands the full heading content.