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