我有一個webview和一個admob廣告的底部。它正在獲取廣告,但沒有顯示,因爲屏幕太小。以前,當我在linear layout
中運行它時,廣告會顯示正常。安卓admob不showin - 屏幕尺寸太小
這裏是代碼,我現在:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:orientation="vertical">
<com.google.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adUnitId="a14e0b54f42c7c7"
ads:adSize="BANNER"
ads:loadAdOnCreate="true"/>
<WebView
android:id="@+id/sdrwebview"
android:layout_width="fill_parent"
android:layout_above="@+id/ad"
android:layout_height="fill_parent"/>
</RelativeLayout>
任何想法?多謝
沒有運氣。它在log cat中說同樣的事情'沒有足夠的空間來顯示廣告!' – Splitusa
任何其他想法它可能是什麼? – Splitusa
試着找出究竟有多少**不夠**是 – mibollma