开发者社区> 问答> 正文

关于Android webview布局 的问题

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

 ** 链接是自适应屏幕的 怎么解救????**
 !!
 <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大小怎么改 她都是全屏显示网页

展开
收起
爵霸 2016-03-10 13:53:56 3119 0
1 条回答
写回答
取消 提交回答
  • 擅长互联网移动开发。。。

    用边距属性

    2019-07-17 18:57:30
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载