大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

[教学]android Webview遮挡其他控件Webview layout overlapping buttons

[复制链接]
跳转到指定楼层
1#
发表于 2011-9-7 23:27:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[教学]android Webview遮挡其他控件按钮Webview layout overlapping buttons or other controls
添加这条即可/Add this code to resolve the issue》》android:layout_above="@+id/btnOk"
  1. <RelativeLayout android:id="@+id/RelativeLayout01"
  2.                 android:layout_width="fill_parent"
  3.                 android:layout_height="fill_parent"
  4.                 xmlns:android="http://schemas.android.com/apk/res/android">

  5.   <Button android:text="Ok"
  6.           android:id="@+id/btnOk"
  7.           android:layout_width="120px"
  8.           android:layout_height="wrap_content"
  9.           android:layout_gravity="center_horizontal"
  10.           android:layout_alignParentBottom="true"
  11.           android:layout_centerHorizontal="true"/>
  12.     <WebView android:id="@+id/webview"
  13.            android:layout_above="@+id/btnOk"
  14.            android:layout_width="fill_parent"
  15.            android:layout_height="fill_parent"
  16.            />
  17. </RelativeLayout>
复制代码

手机版|大马资讯论坛  

GMT+8, 2024-4-28 02:20 , Processed in 0.017156 second(s), 13 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表