PushwooshInboxStyle
Properties
Accent of the inbox: the action icon of an unread message, the unread dot and the buttons of rich cards, the avatar background of an unread classic row, the pinned-message icon of a classic row, the swipe-to-delete background, the pull-to-refresh spinner and the first-load indicator. Defaults to the theme attribute inboxAccentColor, which resolves to the theme's colorAccent.
When true, messages are marked read once they are on screen: after the list loads and when a scroll settles.
Background of the inbox screen: the list, the message rows, the empty state and the error state, and below API 35 the navigation bar. Does not paint the toolbar. Defaults to the theme attribute inboxBackgroundColor, which PwInboxTheme sets to white; only a host theme that leaves that attribute undefined falls through to android.R.attr.windowBackground.
The toolbar navigation icon — the back arrow. Nothing else. With the key unset we apply no tint of our own, so the icon keeps the one AppCompat gives it from the activity theme's AppCompat colorControlNormal.
Background of the toolbar and the app bar, and below API 35 of the status bar. Independent of backgroundColor. Defaults to android.R.attr.colorPrimary — the platform attribute the toolbar layout points at, not AppCompat's colorPrimary.
The toolbar title. Nothing else. Defaults to white.
Inbox message date format. By default used {@link com.pushwoosh.inbox.ui.model.customizing.formatter.InboxDateFormatter#DEFAULT_DATE_FORMAT} format
The date text size.
The icon shown near the message if there's no icon in push payload. If not specified, the app icon is used
The text color of unread messages. By default used Android android.R.attr.textColorSecondary
The description text size.
The divider color. By default used Android android.R.attr.listDivider
Use this property for clearing list animation {@link #listAnimationResource}
The color of cell highlight. By default used AppCompat R.attr.colorControlHighlight
The action icon (Deep Link, URL, etc.) of an unread message. Defaults to accentColor, and with neither key set to the theme attribute inboxImageTypeColor, which resolves to the theme's colorAccent.
Item appearing animation. Set {@link #EMPTY_ANIMATION} for clear animation
The image which is displayed if the list of inbox messages is empty
The text which is displayed if the list of inbox messages is empty
The image which is displayed if an error occurs and the list of inbox messages is empty
The error text which is displayed when an error occurs
The date of a read message. Defaults to the theme attribute inboxReadDateColor, which resolves to the theme's android.R.attr.textColorSecondary.
The text color of read messages. By default used Android android.R.attr.textColorSecondary
The action icon of a read message. Defaults to readDateColor, and with neither key set to the theme attribute inboxReadImageTypeColor, which resolves to the theme's android.R.attr.textColorSecondary.
The title color of read messages. By default used Android android.R.attr.textColorSecondary
When true, messages without an explicit displayType pick a rich card by the iOS-parity heuristic: image + title renders a captioned card, image alone renders a banner card. Off by default so existing inboxes keep their legacy row rendering; messages with an explicit displayType render as rich cards regardless of this flag.
Controls whether the InboxFragment displays its own toolbar.
The title color of unread messages. By default used Android android.R.attr.textColorPrimary
The title text size.
Functions
Resets every color key of this object back to its default, the three toolbar keys included, and puts showToolbar back to auto-detect. barTitle is not a color and is left alone.