Widget Documentation: LMFeedHeaderView
Widget: LMFeedHeaderView
The LMFeedHeaderView
is a customizable header component, supporting elements like titles, subtitles, navigation icons, notification icons, and user profile images with configurable styles and click listeners.
Method | Description |
---|---|
setStyle(headerViewStyle: LMFeedHeaderViewStyle) | Applies the given style to the header view. |
setTitleText(title: String) | Sets the title text in the header. |
setSubTitleText(subtitle: String) | Sets the subtitle text in the header. |
setNavigationIconClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the navigation icon. |
setSubmitText(submitText: String) | Sets the text for the submit button. |
setSubmitButtonEnabled(isEnabled: Boolean, showProgress: Boolean = false) | Toggles the enabled state of the submit button and optionally shows a progress indicator. |
setNotificationCountText(count: Int) | Sets the text for the notification count. |
setNotificationIconVisibility(isVisible: Boolean) | Toggles the visibility of the notification icon. |
setUserProfileImage(user: LMFeedUserViewData) | Sets the user's profile image in the header. |
setSearchIconClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the search icon. |
setSubmitButtonClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the submit button. |
setUserProfileClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the user profile icon. |
setNotificationIconClickListener(listener: LMFeedOnClickListener) | Registers a click listener for the notification icon. |
View Style: LMFeedHeaderViewStyle
The LMFeedHeaderViewStyle
defines the appearance and layout properties for the LMFeedHeaderView
, including configurations for text styles, icons, and colors.
Field | Description | Type |
---|---|---|
titleTextStyle | Configures the text style for the title. | LMFeedTextStyle |
subtitleTextStyle | Configures the text style for the subtitle. | LMFeedTextStyle |
backgroundColor | Specifies the background color of the header view. | Int |
elevation | Specifies the elevation of the header view. | Int |
submitTextStyle | Configures the text style for the submit button. | LMFeedTextStyle |
activeSubmitColor | Specifies the color for the active submit button. | Int |
navigationIconStyle | Configures the style for the navigation icon. | LMFeedIconStyle |
searchIconStyle | Configures the style for the search icon. | LMFeedIconStyle |
userProfileStyle | Configures the style for the user profile image. | LMFeedImageStyle |
notificationIconStyle | Configures the style for the notification icon. | LMFeedIconStyle |
notificationCountTextStyle | Configures the text style for the notification count. | LMFeedTextStyle |