2

I have this XMl in my main...

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingTop="4px" >

    <include
        android:id="@+id/search"
        layout="@layout/search" />



    <ListView
        android:id="@+id/wordList"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/search"
        android:layout_centerHorizontal="true" >

    </ListView>

</RelativeLayout>

and my problem is that my ListView doesn't appears android:id="@+id/search" below... so what I do wrong ?

Dheeresh Singh
  • 15,643
  • 3
  • 38
  • 36
Big.Child
  • 2,948
  • 4
  • 19
  • 26

2 Answers2

2

Use

android:layout_below="@id/search"

The + is not needed there.

sth
  • 222,467
  • 53
  • 283
  • 367
Dheeresh Singh
  • 15,643
  • 3
  • 38
  • 36
0

Another assumption: The included layout may have height="match_parent" so that the ListView doesnt have any space left...

Zelleriation
  • 2,834
  • 1
  • 23
  • 23