QQ863017854 2016-03-10 08:58 采纳率: 100%
浏览 2183
已采纳

Android webview布局

我在ui里设置了webview下面有图片按钮 但是实际运行的时候却显示不了
图片说明

求大神解答

** 链接是自适应屏幕的 怎么解救????**
!!

 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <WebView
        android:id="@+id/zhaopin"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />

 <RadioGroup
     android:id="@+id/main_fragment_rgp"
     android:layout_width="match_parent"
     android:layout_height="46dp"
     android:layout_alignParentBottom="true"
     android:layout_weight="0.04"
     android:background="@drawable/shape_bottom_radio_group_back"
     android:checkedButton="@+id/main_rbn_news"
     android:orientation="horizontal" >

        <RadioButton
            android:id="@+id/main_rbn_news"
            android:layout_width="71dp"
            android:layout_height="match_parent"
            android:button="@null"
            android:drawableTop="@drawable/selector_rbn_news"
            android:onClick="news" />

        <RadioButton
            android:id="@+id/main_rbn_youhui"
            android:layout_width="92dp"
            android:layout_height="match_parent"
            android:button="@null"
            android:drawableTop="@drawable/selector_rbn_postbar"
            android:onClick="youhui" />

        <RadioButton
            android:id="@+id/main_rbn_zhaopin"
            android:layout_width="82dp"
            android:layout_height="match_parent"
            android:button="@null"
            android:drawableTop="@drawable/zhaopin"
            android:onClick="zhaopin" />
 <RadioButton
            android:id="@+id/main_rbn_about"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:button="@null"
            android:drawableTop="@drawable/about"
            android:onClick="about" />
    </RadioGroup>
</RelativeLayout>

无论我把webview大小怎么改 她都是全屏显示网页

  • 写回答

5条回答 默认 最新

  • 东风玖哥 2016-03-11 02:32
    关注

    你的WebView这么写:
    android:layout_height = "0dp"
    android:layout_weight = "1"
    就能实现目的了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题