2011-06-30 49 views
4

我有一个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> 

任何想法?多谢

回答

1

尝试围绕交换意见...网页视图可能是覆盖的AdView

<RelativeLayout...> 
    <WebView.../> 
    <com.google.ads.AdView.../> 
</RelativeLayout> 
+0

没有运气。它在log cat中说同样的事情'没有足够的空间来显示广告!' – Splitusa

+0

任何其他想法它可能是什么? – Splitusa

+0

试着找出究竟有多少**不够**是 – mibollma