<?xml version="1.0" encoding="utf-8"?><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<WebView
android:id="@+id/webview_01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/webview_btn_ok"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_alignParentBottom="true"
android:text="done"
/>
</RelativeLayout>
</LinearLayout>
效果圖如下:怎麼讓webview正好顯示到 done 這個按鈕的上方?謝謝
(現在按鈕和webview重疊了)
解决方案 »
- 尝试写的录音demo在.stop()的时候抛出异常
- Android输入法键盘弹出问题
- 麻烦高手帮我看一下,我的模拟器出了INSTALL_FAILED_CONTAINER_ERROR该怎么解决?
- android教父高焕堂-android系统架构师之路
- 请教一个关于ffmpeg Deinterlace的问题
- android 上传图片 后端用WCF接收
- Android listview 显示本地数据库数据
- Android理论知识
- android App布局
- 有没有大神帮忙 新手小白一枚
- 传说中支持C++开发的android会在什么时候出来呢
- Android开发 strings.xml里面定义了两个array,获取第二个以后会报错
再在webview中加上一个layout_above,显示在button上方
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"> <WebView android:id="@+id/help_contents"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fadingEdge="vertical"
android:fadingEdgeLength="12dip"/> <LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:orientation="horizontal"
android:gravity="center"
android:padding="4dip"
android:weightSum="1"> <Button android:id="@+id/back_button"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="返回上一页"
android:textSize="20dip"/> <Button android:id="@+id/done_button"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="退出"
android:textSize="20dip"/>
</LinearLayout>
</LinearLayout>参考下吧