android - problem placing Button/ListView under relative layout in layout XML -


the following layout xml working on. supposed display , edit field , buttons @ top of display listview filling rest. items embedded in relativelayout show up. items below not display. i'm not sure doing wrong in layout xml.

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent" > <relativelayout     android:orientation="vertical"      android:layout_width="fill_parent"     android:layout_height="wrap_content"      android:padding="10px">      <textview android:id="@+id/tidname"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:gravity="center_horizontal"               android:text="enter name:" />      <edittext android:id="@+id/eidname"                android:layout_width="fill_parent"                android:layout_height="wrap_content"                android:background="@android:drawable/editbox_background"               android:layout_below="@id/tidname" />      <button android:id="@+id/bidshow"              android:layout_width="wrap_content"              android:layout_height="wrap_content"              android:layout_below="@id/tidname"             android:layout_alignparentright="true"             android:layout_marginleft="10px"             android:text="show search results" />      <button android:id="@+id/bidusedefault"             android:layout_width="wrap_content"              android:layout_height="wrap_content"             android:layout_below="@id/tidname"             android:layout_alignparentleft="true"             android:layout_marginright="10px"             android:text="use default" />  </relativelayout> <button              android:layout_below="@id/ridmain"             android:layout_width="wrap_content"              android:layout_height="wrap_content"              android:text="refresh" /> <listview android:id="@+id/lidresults"         android:layout_width="fill_parent"         android:layout_height="fill_parent" /> </linearlayout> 

thanks in advance,

add android:orientation="vertical" on main layout


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -