Content Cards Divider Item Decoration
Manages the divider logic of cards in the ContentCards. To center align cards, this sets a left padding on each view based on the configured maximum width of the Content Cards and the size of the screen. To add a divider between cards, sets a top padding on each card.
Reads the item divider values from the "dimens" resource. For the item divider height: "R.dimen.com_braze_content_cards_divider_height" For the item max width: "R.dimen.com_braze_content_cards_max_width"
Constructors
Functions
Link copied to clipboard
open override fun getItemOffsets(itemViewOutputRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State)
Link copied to clipboard
Link copied to clipboard
open fun onDrawOver(@NonNull p0: Canvas, @NonNull p1: RecyclerView, @NonNull p2: RecyclerView.State)