메시지 - 배너 광고 추가

This commit is contained in:
2023-09-15 02:22:15 +09:00
parent 52e6965472
commit f9401d91c4
9 changed files with 127 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -29,6 +30,14 @@
android:textSize="13.3sp"
tools:ignore="LabelFor" />
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="13.3dp"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_message_banner_unit_id" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_recipient"
android:layout_width="match_parent"

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -83,10 +84,19 @@
</RelativeLayout>
<ScrollView
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/rl_recipient"
android:layout_marginTop="13.3dp"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_message_banner_unit_id" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/ad_view"
android:layout_marginHorizontal="13.3dp"
android:layout_marginTop="13.3dp"
android:background="@drawable/bg_round_corner_10_232323_9970ff">

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -32,6 +33,14 @@
android:layout_height="1dp"
android:background="@color/color_88909090" />
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="13.3dp"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_message_banner_unit_id" />
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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"
@@ -10,6 +11,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_message_banner_unit_id"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -19,8 +30,8 @@
android:text="음성메시지"
android:textColor="@color/white"
android:textSize="18.3sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
ads:layout_constraintTop_toBottomOf="@+id/ad_view"
app:layout_constraintStart_toStartOf="parent" />
<ImageView
android:id="@+id/iv_close"
@@ -30,8 +41,8 @@
android:paddingHorizontal="26.7dp"
android:paddingTop="26.7dp"
android:src="@drawable/ic_close_white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
ads:layout_constraintTop_toBottomOf="@+id/ad_view"
app:layout_constraintEnd_toEndOf="parent" />
<RelativeLayout
android:id="@+id/rl_select_recipient"