Skip to content
Documentation menu
SDKMobile appsKotlin · Android

Card appearance

AdAppearance. All blocks, buttons and disclosure remain visible. Card height follows its content.

AdAppearance
adView.appearance = AdAppearance(
maxWidth = 360f,
mediaHeight = 200f,
mediaFit = AdMediaFit.COVER,
mediaPosition = AdMediaPosition.TOP,
mediaRadius = 12f
)
// Original proportions: mediaHeight = null
// Container width: maxWidth = null
FieldDefaultValues
colorSchemeAUTOAUTO / LIGHT / DARK
surfaceCARDCARD / INLINE
alignmentSTARTSTART / CENTER / END
mediaFitCOVERCOVER / CONTAIN
mediaPositionTOPTOP / CENTER / BOTTOM
buttonLayoutWRAPWRAP / FULL_WIDTH
cornerRadius160-32 dp
contentPadding126-32 dp
mediaHeight200100-640 dp / null
bodyFontSize1413-20 sp
bodyLineHeight2018-32 sp
brandFontSize1413-22 sp
metaFontSize1111-14 sp
buttonFontSize1413-18 sp
buttonMinHeight3232-56 dp
buttonHorizontalPadding128-32 dp
blockSpacing84-24 dp
logoSize2016-40 dp
maxWidth360240-1200 dp / null
mediaRadius120-32 dp
buttonRadius9990-999 dp

Numeric values are clamped to these ranges. INLINE allows contentPadding=0. Line height is at least 1.35 times the font size. Logos always use centered contain. Appearance changes do not create an impression.

Container: wrap_content height. Fixed parent constraints can clip text and buttons. Android font scaling is preserved.