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

标题: [教学]android Webview遮挡其他控件Webview layout overlapping buttons [打印本页]

作者: 资讯王    时间: 2011-9-7 23:27
标题: [教学]android Webview遮挡其他控件Webview layout overlapping buttons
[教学]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>
复制代码





欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://www.freeinfo.com.my/) Powered by Discuz! X3.3