GridRow

data class GridRow(val iconSizeDp: Int, val iconInsetDp: Int, val contentPaddingDp: Int, val iconSpacingDp: Int) : NativeAdPresentation(source)

One row of a grouped grid: icon badge, headline, the disclosure chip inline with the body, advertiser, and a trailing CTA, all on a single row, so the ad is no taller than the cells it sits between.

It is the only presentation whose measurements are chosen by the caller. A grid draws its cells at a size class, and an ad row that ignored that size would read as a different kind of block, so the row takes the same badge size, inset, padding and gap as the cells around it. Everything about its finish, the badge silhouette and colour and the headline size included, is a NativeAdStyle.

Constructors

Link copied to clipboard
constructor(iconSizeDp: Int, iconInsetDp: Int, contentPaddingDp: Int, iconSpacingDp: Int)

Properties

Link copied to clipboard

Inset from the row's edges, matching the cells' content padding.

Link copied to clipboard

Inset between the badge and the ad icon, so the icon is drawn at the size of the glyphs in the cells rather than filling the badge.

Link copied to clipboard

Badge size, matching the cells' badge.

Link copied to clipboard

Gap after the badge, matching the cells'.