布局包括一个标题,一个webvIEw主体和一个底部的页脚横幅,如附图所示.
我需要webvIEw来获取页眉和页脚之间的所有剩余空间.
我试过这个:
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:orIEntation="vertical" androID:background="@drawable/back" androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent"> <ImageVIEw androID:ID="@+ID/banner" androID:layout_height="wrap_content" androID:layout_wIDth="wrap_content" androID:src="@drawable/banner" /> <WebVIEw androID:ID="@+ID/webvIEw" androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" androID:background="@drawable/bck" androID:layout_weight="2" androID:layout_gravity="center"/> <relativeLayout androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_weight="4"> <com.mobclix.androID.sdk.MobclixMMABannerXLAdVIEw androID:ID="@+ID/banner_advIEw" androID:layout_wIDth="320dip" androID:layout_height="50dip" androID:layout_gravity="center" androID:layout_alignParentBottom="true" /> </relativeLayout>解决方法 将所有这些放在relativeLayout中并在webvIEw中使用layout_below =“@ ID / header_banner”和layout_above =“@ ID / footer_banner” 总结
以上是内存溢出为你收集整理的android webview布局占用剩余空间全部内容,希望文章能够帮你解决android webview布局占用剩余空间所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)