我正在使用这个XML在底部显示我的一个Button
,在顶部显示一个TextView
,中间显示一个TextView
。中间的textview覆盖了按钮和顶部textview之间的整个范围。中间TextView
根本没有显示。哪里不对?相对布局,文本视图不显示
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:id="@+id/task"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/tasks"
/>
<Button
android:id="@+id/btnAddTask"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/AddTasks"
android:layout_alignParentBottom="true"
/>
<TextView
android:id="@+id/TasksList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/tasks"
android:layout_above="@id/task"
android:layout_below="@id/btnAddTask"
/>
</RelativeLayout>
+1用于显示代码标记中的整个代码而不打扰版主。 – 2011-06-14 16:58:33