Skip to content

Commit 70bd3f8

Browse files
Merge pull request #262 from MihaiCristianCondrea/codex/fix-visibility-of-why-this-ad-icon-1jr2ln
Fix AdChoices overlay on about native ad
2 parents ab0dc7b + e6ccdfc commit 70bd3f8

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

app/src/main/res/layout/ad_about.xml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,23 @@
3737
app:layout_constraintStart_toStartOf="parent"
3838
app:layout_constraintTop_toTopOf="parent">
3939

40-
<com.google.android.gms.ads.nativead.MediaView
41-
android:id="@+id/ad_media"
40+
<FrameLayout
4241
android:layout_width="match_parent"
43-
android:layout_height="match_parent" />
44-
</com.google.android.material.card.MaterialCardView>
42+
android:layout_height="match_parent">
4543

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>
5457

5558
<com.google.android.material.textview.MaterialTextView
5659
android:id="@+id/ad_headline"

0 commit comments

Comments
 (0)