Screen: LMFeedActivityFeedFragment
The LMFeedActivityFeedFragment
is a core component of the LikeMinds feed system, responsible for displaying activity feeds within the app. It enables users to view and interact with activity feed items while supporting customization and interaction handling.
GitHub File: LMFeedActivityFeedFragment.kt
View Style: LMFeedActivityFeedFragmentViewStyle
The LMFeedActivityFeedFragmentViewStyle
defines the visual style and structure of the LMFeedActivityFeedFragment
, including headers, activity views, and layout styling.
GitHub File: LMFeedActivityFeedFragmentViewStyle.kt
Field | Description | Type |
---|---|---|
headerViewStyle | Style attributes for the header view. | LMFeedHeaderViewStyle |
activityViewStyle | Defines the style for activity views. | LMFeedActivityViewStyle |
noActivityLayoutViewStyle | Style for the "No Activity" layout. | LMFeedNoEntityLayoutViewStyle |
backgroundColor | Background color for the fragment. | Color |
Customization Available in LMFeedActivityFeedFragment
The fragment provides the following customization methods:
Header Customizations
- customizeActivityFeedHeaderView(headerView: LMFeedHeaderView):
Customize the appearance and functionality of the header view in the activity feed.
Layout Customizations
- customizeNoTopicsLayout(layoutNoTopics: LMFeedNoEntityLayoutView):
Customize the layout displayed when there are no topics available in the activity feed.
Interactions Available in LMFeedActivityFeedFragment
The fragment supports the following interaction methods:
Item Click Interactions
onActivityFeedItemClicked(position: Int, activityFeedItem: LMFeedActivityViewData)
Handles click events for individual activity feed items, allowing developers to respond to user interactions.