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