|
5 | 5 | android:layout_height="wrap_content"> |
6 | 6 |
|
7 | 7 | <com.google.android.material.card.MaterialCardView |
| 8 | + style="@style/Widget.Material3.CardView.Outlined" |
8 | 9 | android:layout_width="match_parent" |
9 | 10 | android:layout_height="wrap_content" |
10 | | - style="@style/Widget.Material3.CardView.Outlined" |
11 | | - app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardView"> |
| 11 | + app:cardCornerRadius="24dp"> |
12 | 12 |
|
13 | 13 | <LinearLayout |
14 | 14 | android:layout_width="match_parent" |
|
23 | 23 | android:text="@string/ad" |
24 | 24 | android:textAppearance="@style/TextAppearance.Material3.LabelSmall" /> |
25 | 25 |
|
26 | | - <com.google.android.gms.ads.nativead.MediaView |
27 | | - android:id="@+id/ad_media" |
| 26 | + <com.google.android.material.card.MaterialCardView |
| 27 | + style="@style/Widget.Material3.CardView.Filled" |
28 | 28 | android:layout_width="match_parent" |
29 | 29 | android:layout_height="180dp" |
30 | | - android:minWidth="120dp" |
31 | | - android:minHeight="120dp" |
32 | | - android:visibility="gone" /> |
| 30 | + android:layout_marginTop="8dp" |
| 31 | + android:layout_marginBottom="8dp" |
| 32 | + app:cardCornerRadius="12dp"> |
| 33 | + |
| 34 | + <com.google.android.gms.ads.nativead.MediaView |
| 35 | + android:id="@+id/ad_media" |
| 36 | + android:layout_width="match_parent" |
| 37 | + android:layout_height="match_parent" |
| 38 | + android:scaleType="centerCrop" /> |
| 39 | + </com.google.android.material.card.MaterialCardView> |
33 | 40 |
|
34 | 41 | <LinearLayout |
35 | 42 | android:layout_width="match_parent" |
36 | 43 | android:layout_height="wrap_content" |
37 | | - android:orientation="horizontal" |
38 | | - android:gravity="center_vertical"> |
| 44 | + android:gravity="center_vertical" |
| 45 | + android:orientation="horizontal"> |
39 | 46 |
|
40 | 47 | <ImageView |
41 | 48 | android:id="@+id/ad_app_icon" |
|
58 | 65 | android:layout_marginTop="4dp" |
59 | 66 | android:textAppearance="@style/TextAppearance.Material3.BodySmall" /> |
60 | 67 |
|
61 | | - <Button |
| 68 | + <com.google.android.material.button.MaterialButton |
62 | 69 | android:id="@+id/ad_call_to_action" |
63 | | - style="@style/Widget.Material3.Button" |
64 | 70 | android:layout_width="wrap_content" |
65 | 71 | android:layout_height="wrap_content" |
| 72 | + android:layout_gravity="end" |
66 | 73 | android:layout_marginTop="8dp" /> |
67 | 74 | </LinearLayout> |
68 | 75 | </com.google.android.material.card.MaterialCardView> |
|
0 commit comments