SearchResultListViewStyle

data class SearchResultListViewStyle(@ColorInt val backgroundColor: Int, val searchInfoBarBackground: Drawable, val searchInfoBarTextStyle: TextStyle, val emptyStateIcon: Drawable, val emptyStateTextStyle: TextStyle, val progressBarIcon: Drawable, val messagePreviewStyle: MessagePreviewStyle, @Px val itemHeight: Int, @Px val itemMarginStart: Int, @Px val itemMarginEnd: Int, @Px val itemTitleMarginStart: Int, @Px val itemVerticalSpacerHeight: Int, @Px val itemVerticalSpacerPosition: Float, val itemSeparator: Drawable) : ViewStyle

Style for SearchResultListView. Use this class together with TransformStyle.searchResultListViewStyleTransformer to change SearchResultListView styles programmatically.

Constructors

Link copied to clipboard
constructor(@ColorInt backgroundColor: Int, searchInfoBarBackground: Drawable, searchInfoBarTextStyle: TextStyle, emptyStateIcon: Drawable, emptyStateTextStyle: TextStyle, progressBarIcon: Drawable, messagePreviewStyle: MessagePreviewStyle, @Px itemHeight: Int, @Px itemMarginStart: Int, @Px itemMarginEnd: Int, @Px itemTitleMarginStart: Int, @Px itemVerticalSpacerHeight: Int, @Px itemVerticalSpacerPosition: Float, itemSeparator: Drawable)

Properties

Link copied to clipboard

Background color for search results list. Default value is R.color.stream_ui_white.

Link copied to clipboard

Icon for empty state view. Default value is R.drawable.stream_ui_ic_search_empty.

Link copied to clipboard

Appearance for empty state text.

Link copied to clipboard

Height of single search result item. Default value is R.dimen.stream_ui_search_result_list_item_height.

Link copied to clipboard

End margin for single search result item. Default value is R.dimen.stream_ui_search_result_item_margin_end.

Link copied to clipboard

Start margin for single search result item. Default value is R.dimen.stream_ui_search_result_item_margin_start.

Link copied to clipboard
Link copied to clipboard

Start margin for title in single search result item. Default value is R.dimen.stream_ui_search_result_item_title_margin_start.

Link copied to clipboard

Height of the single search result item vertical spacer. Default value is R.dimen.stream_ui_search_result_item_vertical_spacer_height.

Link copied to clipboard

Position of the single search result item vertical spacer. Default value is R.dimen.stream_ui_search_result_item_vertical_spacer_position.

Link copied to clipboard

Style for single search result item.

Link copied to clipboard
Link copied to clipboard

Background for search info bar. Default value is R.drawable.stream_ui_bg_gradient.

Link copied to clipboard

Appearance for text displayed in search info bar.