|
| 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 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="wrap_content"> |
| 6 | + |
| 7 | + <com.google.android.material.card.MaterialCardView |
| 8 | + android:id="@+id/ad_card" |
| 9 | + style="@style/Widget.Material3.CardView.Outlined" |
| 10 | + android:layout_width="match_parent" |
| 11 | + android:layout_height="wrap_content" |
| 12 | + app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewBottomRounded"> |
| 13 | + |
| 14 | + <LinearLayout |
| 15 | + android:layout_width="match_parent" |
| 16 | + android:layout_height="wrap_content" |
| 17 | + android:orientation="vertical" |
| 18 | + android:paddingVertical="4dp" |
| 19 | + android:paddingHorizontal="16dp"> |
| 20 | + |
| 21 | + <include layout="@layout/ad_attribution" /> |
| 22 | + |
| 23 | + <LinearLayout |
| 24 | + android:layout_width="match_parent" |
| 25 | + android:layout_height="wrap_content" |
| 26 | + android:layout_marginTop="8dp" |
| 27 | + android:gravity="center_vertical" |
| 28 | + android:orientation="horizontal"> |
| 29 | + |
| 30 | + <ImageView |
| 31 | + android:id="@+id/ad_app_icon" |
| 32 | + android:layout_width="40dp" |
| 33 | + android:layout_height="40dp" |
| 34 | + android:layout_marginEnd="16dp" /> |
| 35 | + |
| 36 | + <LinearLayout |
| 37 | + android:layout_width="0dp" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + android:layout_weight="1" |
| 40 | + android:orientation="vertical"> |
| 41 | + |
| 42 | + <TextView |
| 43 | + android:id="@+id/ad_headline" |
| 44 | + android:layout_width="wrap_content" |
| 45 | + android:layout_height="wrap_content" |
| 46 | + android:ellipsize="end" |
| 47 | + android:maxLines="1" |
| 48 | + android:textAppearance="@style/TextAppearance.Material3.TitleMedium" /> |
| 49 | + |
| 50 | + <TextView |
| 51 | + android:id="@+id/ad_body" |
| 52 | + android:layout_width="wrap_content" |
| 53 | + android:layout_height="wrap_content" |
| 54 | + android:ellipsize="end" |
| 55 | + android:maxLines="2" |
| 56 | + android:textAppearance="@style/TextAppearance.Material3.BodySmall" /> |
| 57 | + </LinearLayout> |
| 58 | + |
| 59 | + <com.google.android.material.button.MaterialButton |
| 60 | + android:id="@+id/ad_call_to_action" |
| 61 | + style="@style/Widget.Material3.Button.TextButton" |
| 62 | + android:layout_width="wrap_content" |
| 63 | + android:layout_height="wrap_content" /> |
| 64 | + </LinearLayout> |
| 65 | + </LinearLayout> |
| 66 | + </com.google.android.material.card.MaterialCardView> |
| 67 | +</com.google.android.gms.ads.nativead.NativeAdView> |
0 commit comments