【发布时间】:2015-04-24 21:46:51
【问题描述】:
在我使用按钮和 webview 实现线性布局之前,我的独立 webview 运行良好。我添加了以下内容,现在只显示按钮:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="match_parent">
<ImageButton
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/back_nav"
/>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
我只想要一个跨越顶部的按钮,在它下面有一个 webview 来填充视图的其余部分。
我做错了什么?
【问题讨论】:
标签: android android-layout webview