网络视图中的Android adMob-布局问题
我目前正试图在webview的底部放置一个使用adMob的广告,但到目前为止,webview占据了整个屏幕。我基本上只希望底部有一个小横幅,顶部有webview 以下是我所拥有的:网络视图中的Android adMob-布局问题,android,layout,android-layout,uiwebview,admob,Android,Layout,Android Layout,Uiwebview,Admob,我目前正试图在webview的底部放置一个使用adMob的广告,但到目前为止,webview占据了整个屏幕。我基本上只希望底部有一个小横幅,顶部有webview 以下是我所拥有的: <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.andro
<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>
有什么想法吗?谢谢这应该可以解决问题 试试看
android:layout_height="0dp"
android:layout_weight="1"
而不是
android:layout_height="fill_parent"
论网络视图