Just replace android:orientation="horizontal" by android:orientation="vertical"
On Mon, Mar 30, 2009 at 6:24 PM, rch <ravichitt...@gmail.com> wrote: > > I am trying to render a ListView and a TextView within a LinearLayout. > That activity is inherited from ListActivity. > The problem I am running into is Listview and TextView are not getting > arranged properly one below the other in the layout. > basically they getting rendered side by side. > Need help.. > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:orientation="horizontal"> > > <TextView android:id="@+android:id/test" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="test test" > /> > <ListView android:id="@android:id/list" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > /> > </LinearLayout> > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---