|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<com.google.android.gms.ads.nativead.NativeAdView xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + android:layout_width="match_parent" |
| 4 | + android:layout_height="wrap_content"> |
| 5 | + |
| 6 | + <LinearLayout |
| 7 | + android:id="@+id/ad_host" |
| 8 | + android:layout_width="match_parent" |
| 9 | + android:layout_height="wrap_content" |
| 10 | + android:orientation="vertical" |
| 11 | + android:background="?attr/colorSurfaceContainer" |
| 12 | + android:paddingStart="16dp" |
| 13 | + android:paddingEnd="16dp" |
| 14 | + android:paddingTop="12dp" |
| 15 | + android:paddingBottom="12dp"> |
| 16 | + |
| 17 | + <include layout="@layout/ad_attribution" /> |
| 18 | + |
| 19 | + <LinearLayout |
| 20 | + android:layout_width="match_parent" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:gravity="center_vertical" |
| 23 | + android:orientation="horizontal"> |
| 24 | + |
| 25 | + <ImageView |
| 26 | + android:id="@+id/ad_app_icon" |
| 27 | + android:layout_width="32dp" |
| 28 | + android:layout_height="32dp" |
| 29 | + android:layout_marginEnd="12dp" /> |
| 30 | + |
| 31 | + <LinearLayout |
| 32 | + android:layout_width="0dp" |
| 33 | + android:layout_height="wrap_content" |
| 34 | + android:layout_weight="1" |
| 35 | + android:orientation="vertical"> |
| 36 | + |
| 37 | + <TextView |
| 38 | + android:id="@+id/ad_headline" |
| 39 | + android:layout_width="wrap_content" |
| 40 | + android:layout_height="wrap_content" |
| 41 | + android:ellipsize="end" |
| 42 | + android:maxLines="1" |
| 43 | + android:textAppearance="@style/TextAppearance.Material3.BodyMedium" /> |
| 44 | + |
| 45 | + <TextView |
| 46 | + android:id="@+id/ad_body" |
| 47 | + android:layout_width="wrap_content" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:ellipsize="end" |
| 50 | + android:maxLines="1" |
| 51 | + android:textAppearance="@style/TextAppearance.Material3.BodySmall" /> |
| 52 | + </LinearLayout> |
| 53 | + |
| 54 | + <com.google.android.material.button.MaterialButton |
| 55 | + android:id="@+id/ad_call_to_action" |
| 56 | + style="@style/Widget.Material3.Button.TextButton" |
| 57 | + android:layout_width="wrap_content" |
| 58 | + android:layout_height="wrap_content" |
| 59 | + android:minWidth="64dp" |
| 60 | + android:minHeight="36dp" |
| 61 | + android:layout_marginStart="8dp" /> |
| 62 | + </LinearLayout> |
| 63 | + </LinearLayout> |
| 64 | +</com.google.android.gms.ads.nativead.NativeAdView> |
0 commit comments