Customizing Knock UI components in Android
How to customize Knock's Android UI components.
InAppFeedTheme
#Overview
#InAppFeedTheme allows for UI customization of the InAppFeedView.
Properties
#Defines the UI customization of the row items.
Defines the UI customization of the top filter tabs.
Sets the title of the view. If set to nil, then the title view will be hidden entirely. This is useful if you want to have a completely custom title view.
Sets the textStyle for the title of the view.
Sets the background color of the top portion of the view (title view, filter view, and top action buttons view).
Sets the background color of the bottom portion of the view (the list).
FeedNotificationRowTheme
#Overview
#FeedNotificationRowTheme allows for UI customization of the row items in the KnockInAppFeedView.
Properties
#Background color of the FeedNotificationRow.
Set the textStyle of the body of the message.
Color of the unread circle indicator in the top left of the row.
Show or hide the avatar/initials view in the upper left corner of the row.
Customize styling of avatarview.
Styling for primary action buttons.
Styling for secondary action buttons.
DateTimeFormatter for the sent timestamp at the bottom of the row.
TextStyle for sent timestamp.
This is the config to set the mark as read/unread swipe actions. Set to null to remove the action entirely.
This is the config to set the archive/unarchive swipe actions. Set to null to remove the action entirely.
AvatarViewTheme
#Overview
#AvatarViewTheme allows for UI customization of the user avatar view in the row item.
Properties
#Background color of the view. This is more apparent when the view is showing initials instead of an image.
TextStyle for the initials view.
Overall size of the avatar view.
FilterTabTheme
#Overview
#FilterTabTheme allows for UI customization of the filter tab bar at the top of the view.
Properties
#The color the tab will be in the selected state.
The color the tab will be in the unselected state.
The TextStyle of the filter tab text.
EmptyFeedViewTheme
#Overview
#EmptyFeedViewTheme allows for UI customization of the EmptyFeedView for each filter.
Properties
#The background color of the view.
The title of the EmptyFeedView.
The TextStyle of the title.
The subtitle of the EmptyFeedView.
The TextStyle of the subtitle.
The TextStyle of the filter tab text.
The TextStyle of the filter tab text.
The TextStyle of the filter tab text.
The TextStyle of the filter tab text.
FilterTabTheme
#Overview
#FilterTabTheme allows for UI customization of the filter tab bar at the top of the view.
Properties
#The color the tab will be in the selected state.
The color the tab will be in the unselected state.
The TextStyle of the filter tab text.
SwipeConfig
#Overview
#SwipeConfig allows for UI customization of the left and right swipe actions of the FeedNotificationRow.
Properties
#The action you want taken on the swipe.
The title of the swipe action (e.g. Read).
The inverse title of the swipe action (e.g. Unread).
The textStyle of the title.
The image resource.
The inverse image resource.
The size of the image.
The color of the image.
The background color of the swipe action.