-1
Admob 배너를 표면보기에 포함시킬 수있는 아이디어가 있습니까? 나는 많은 시간을 보았지만 효과가 없었습니다. 이Admob Banner on A Surface보기
Your_activity.xml
< ?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"
android:layout_width="match_parent"
android:layout_height="match_parent">
<SurfaceView android:layout_width="match_parent"
android:layout_height="match_parent"/>
<com.google.android.gms.ads.AdView android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="MY_AD_UNIT_ID"
android:layout_align_parrent_bottom="true"
ads:adSize="BANNER"/>
</RelativeLayout >
또는 코드에서의 AdMob 배너를 만들 같은
에서 이미 시도한 코드를 추가 할 수 있습니까? – donfuxx
답변 해 주셔서 감사합니다! :) 나는 더 이상 코드가 없다. 죄송합니다. – user2399229
SurfaceView를 일부 컨테이너에 포장하고 표준 AdMob 배너를 추가해야한다고 생각하십니까? – alekz