Content Card Styling
This specifies the various styles to use for rendering Content Cards.
Values will be pulled from the specific card type (imageOnlyContentCardStyle, textAnnouncementContentCardStyle, shortNewsContentCardStyle, and captionedImageContentCardStyle). If the value isn't present there, then it will used the more general value for all card types.
If the modifier is specified, it will be used directly with very little modification.
Note: Due to how Jetpack Compose works, listPadding is passed in here so that additional padding can be added to the cards. This is needed to allowed swiped cards to be swiped completely out of view. You will also need to add this to your modifier's padding if you specify your own.
Constructors
Properties
Color of the card description text. If not specified, it will fallback to R.color.com_braze_content_cards_action_hint_text_color
TextStyle used for the title. If this is specified, other title text customization will be ignored.
Border color. If not specified, it will fallback to R.color.com_braze_content_card_background_border
Size of the border radius. If not specified, it will fallback to R.dimen.com_braze_content_card_background_corner_radius
Size of the border. This is used to handle all sides at once. If a specific size is specified (e.g. topBorderSize), that will be used instead.
Size of the top border. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_bottom
Style to use specifically for Captioned Image Content Cards. See note above.
Color of the card background. If not specified, it will fallback to R.color.com_braze_content_card_background
Color of the card description text. If not specified, it will fallback to R.color.com_braze_content_cards_description
TextStyle used for the title. If this is specified, other title text customization will be ignored.
Size of the border on the end side. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_right
A Composable function that accepts a Card and will render the image. If not specified, default image library is used (Coil)
Style to use specifically for Image Only Content Cards. See note above.
Size of the list padding. See note above.
Maximum width of the card. If not specified, it will fallback to R.dimen.com_braze_content_cards_max_width
A Composable function that will render on pinned cards. If this is specified, then the other pinned paramaters are not used.
The alignment of the pinned image.
The drawable resource ID of the image used for pinned cards.
Color of the card shadow. If not specified, it will fallback to R.color.com_braze_content_card_background_shadow
Size of the card shadow radius. If not specified, it will fallback to R.dimen.com_braze_content_card_background_shadow_radius
Size of the card shadow. If not specified, it will fallback to R.dimen.com_braze_content_card_background_shadow_bottom
Style to use specifically for Short News Content Cards. See note above.
Size of the border on the start side. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_left
Style to use specifically for Text Announcement Content Cards. See note above.
Color of the card title text. If not specified, it will fallback to R.color.com_braze_content_cards_title
TextStyle used for the title. If this is specified, other title text customization will be ignored.
Size of the top border. If not specified, it will fallback to borderSize, and then R.dimen.com_braze_content_card_background_border_top
The color of the unread indicator.
Functions
Return a modifier to be used for a specific card type. If a modifier has been specified for the specific card type, it will be used. If no modifier has been specified for the specific card type, then the general modifier will be used.