탐색 - 광고 배너 추가

This commit is contained in:
2023-09-16 01:12:31 +09:00
parent 90df714a44
commit 42613dfc76
3 changed files with 29 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
@@ -29,4 +30,15 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_creator_channel_banner_unit_id"
app:layout_constraintEnd_toEndOf="@+id/rv_explorer_section"
app:layout_constraintStart_toStartOf="@+id/rv_explorer_section"
app:layout_constraintTop_toBottomOf="@+id/rv_explorer_section" />
</androidx.constraintlayout.widget.ConstraintLayout>