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
| Field | Default | Values |
|---|---|---|
| colorScheme | AUTO | AUTO / LIGHT / DARK |
| surface | CARD | CARD / INLINE |
| alignment | START | START / CENTER / END |
| mediaFit | COVER | COVER / CONTAIN |
| mediaPosition | TOP | TOP / CENTER / BOTTOM |
| buttonLayout | WRAP | WRAP / FULL_WIDTH |
| cornerRadius | 16 | 0-32 dp |
| contentPadding | 12 | 6-32 dp |
| mediaHeight | 200 | 100-640 dp / null |
| bodyFontSize | 14 | 13-20 sp |
| bodyLineHeight | 20 | 18-32 sp |
| brandFontSize | 14 | 13-22 sp |
| metaFontSize | 11 | 11-14 sp |
| buttonFontSize | 14 | 13-18 sp |
| buttonMinHeight | 32 | 32-56 dp |
| buttonHorizontalPadding | 12 | 8-32 dp |
| blockSpacing | 8 | 4-24 dp |
| logoSize | 20 | 16-40 dp |
| maxWidth | 360 | 240-1200 dp / null |
| mediaRadius | 12 | 0-32 dp |
| buttonRadius | 999 | 0-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.