|
37 | 37 | app:layout_constraintStart_toStartOf="parent" |
38 | 38 | app:layout_constraintTop_toTopOf="parent"> |
39 | 39 |
|
40 | | - <com.google.android.gms.ads.nativead.MediaView |
41 | | - android:id="@+id/ad_media" |
| 40 | + <FrameLayout |
42 | 41 | android:layout_width="match_parent" |
43 | | - android:layout_height="match_parent" /> |
44 | | - </com.google.android.material.card.MaterialCardView> |
| 42 | + android:layout_height="match_parent"> |
45 | 43 |
|
46 | | - <com.google.android.gms.ads.nativead.AdChoicesView |
47 | | - android:id="@+id/ad_choices" |
48 | | - android:layout_width="wrap_content" |
49 | | - android:layout_height="wrap_content" |
50 | | - android:layout_marginTop="4dp" |
51 | | - android:layout_marginEnd="4dp" |
52 | | - app:layout_constraintEnd_toEndOf="parent" |
53 | | - app:layout_constraintTop_toTopOf="parent" /> |
| 44 | + <com.google.android.gms.ads.nativead.MediaView |
| 45 | + android:id="@+id/ad_media" |
| 46 | + android:layout_width="match_parent" |
| 47 | + android:layout_height="match_parent" /> |
| 48 | + |
| 49 | + <com.google.android.gms.ads.nativead.AdChoicesView |
| 50 | + android:id="@+id/ad_choices" |
| 51 | + android:layout_width="wrap_content" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_gravity="top|end" |
| 54 | + android:layout_margin="4dp" /> |
| 55 | + </FrameLayout> |
| 56 | + </com.google.android.material.card.MaterialCardView> |
54 | 57 |
|
55 | 58 | <com.google.android.material.textview.MaterialTextView |
56 | 59 | android:id="@+id/ad_headline" |
|
0 commit comments