2011-06-29 20 views
0

我目前正試圖把一個廣告使用在web視圖的底部的adMob,但到目前爲止web視圖正在接管整個屏幕。我基本上只是想在底部的小旗幟,在上面Android的adMob內的網絡視圖 - 佈局問題

這裏Webview是我有:

<LinearLayout 
android:id="@+id/linearLayout1" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical"> 
    <LinearLayout 
    android:layout_height="wrap_content" 
    android:id="@+id/footer" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_weight="1"> 
    <WebView 
    android:id="@+id/sdrwebview" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:layout_gravity="top"/> 
    </LinearLayout> 

</LinearLayout> 

什麼想法?由於

回答

0

在網頁視圖嘗試

android:layout_height="0dp" 
android:layout_weight="1" 

代替

android:layout_height="fill_parent" 

+0

我想這並沒有活像ķ – Splitusa