이 XML을 사용하여 아래쪽에 Button
한 개를 표시하고 맨 위에 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 중재자를 괴롭히지 않고 코드 태그에 전체 코드를 표시합니다. –