android webviwe 头布局,Android布局问题,带有WebView下方的按钮
您需要使用android:layout_above=“@+id/btnok”作為您的webview,并填寫_parent作為webview的寬度和高度。
但是,需要注意的是,在1.5及以下版本中,為了正確識別XML,需要指定相對布局視圖。換句話說,您必須先使用按鈕,然后使用WebView,因為WebView將引用該按鈕。我認為這在1.6或2.0中已經被改變了,但我不肯定這一點。
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
android:id="@+id/btnOk"
android:layout_width="120px"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"/>
android:layout_above="@+id/btnOk"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
總結
以上是生活随笔為你收集整理的android webviwe 头布局,Android布局问题,带有WebView下方的按钮的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小米路由器怎么和别的路由器桥接如何才能用
- 下一篇: android提交项目到svn,Andr