Class SearchResultListViewStyle
-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.helper.ViewStyle
public final class SearchResultListViewStyle implements ViewStyle
Style for SearchResultListView. Use this class together with TransformStyle.searchResultListViewStyleTransformer to change SearchResultListView styles programmatically.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerbackgroundColorprivate final DrawablesearchInfoBarBackgroundprivate final TextStylesearchInfoBarTextStyleprivate final DrawableemptyStateIconprivate final TextStyleemptyStateTextStyleprivate final DrawableprogressBarIconprivate final MessagePreviewStylemessagePreviewStyle
-
Constructor Summary
Constructors Constructor Description SearchResultListViewStyle(Integer backgroundColor, Drawable searchInfoBarBackground, TextStyle searchInfoBarTextStyle, Drawable emptyStateIcon, TextStyle emptyStateTextStyle, Drawable progressBarIcon, MessagePreviewStyle messagePreviewStyle)
-
Method Summary
Modifier and Type Method Description final IntegergetBackgroundColor()Background color for search results list. final DrawablegetSearchInfoBarBackground()Background for search info bar. final TextStylegetSearchInfoBarTextStyle()Appearance for text displayed in search info bar. final DrawablegetEmptyStateIcon()Icon for empty state view. final TextStylegetEmptyStateTextStyle()Appearance for empty state text. final DrawablegetProgressBarIcon()Animated progress drawable. final MessagePreviewStylegetMessagePreviewStyle()Style for single search result item. -
-
Method Detail
-
getBackgroundColor
final Integer getBackgroundColor()
Background color for search results list. Default value is R.color.stream_ui_white.
-
getSearchInfoBarBackground
final Drawable getSearchInfoBarBackground()
Background for search info bar. Default value is R.drawable.stream_ui_bg_gradient.
-
getSearchInfoBarTextStyle
final TextStyle getSearchInfoBarTextStyle()
Appearance for text displayed in search info bar.
-
getEmptyStateIcon
final Drawable getEmptyStateIcon()
Icon for empty state view. Default value is R.drawable.stream_ui_ic_search_empty.
-
getEmptyStateTextStyle
final TextStyle getEmptyStateTextStyle()
Appearance for empty state text.
-
getProgressBarIcon
final Drawable getProgressBarIcon()
Animated progress drawable. Default value is R.drawable.stream_ui_rotating_indeterminate_progress_gradient.
-
getMessagePreviewStyle
final MessagePreviewStyle getMessagePreviewStyle()
Style for single search result item.
-
-
-
-