我想在webview上显示横幅广告。但不知道该怎么做。Android admob在webview上显示横幅广告
<?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:id="@+id/activity_ptv"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.techndroid.cricketlivestreaming.Ptv">
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id" />
<WebView
android:layout_below="@+id/adView"
android:id="@+id/webStream"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
我想要的广告展示布局的顶部。
我认为它落后于web视图。我需要显示在网页视图
因为你可以使用框架布局 – jagteshwar751