Try this.

android:orientation="vertical"

On Apr 1, 8:57 am, Mike Wolfson <mwolf...@gmail.com> wrote:
> You could:
> - Use a different layout (grid perhaps), which would allow you to
> define your layout more directly
> - set specific width values (instead of fill_parent) which would force
> the layout you want.
>
> Not sure what might be happenning with this layout (not able to mess
> with it at work), but this should get you past your problem.
>
> On Mar 30, 3:58 pm, rch <ravichitt...@gmail.com> wrote:
>
> > I am trYing to define a Layout which is a very simple Linear Layout
> > that has a TextView and ListView.
> > My activity is a ListActivity.  I am trying out few things on top of
> > the Notepad sampleApp. The problem I am facing is TextView and
> > ListView are displayed in two columns.  I want them displayed one
> > below the other.  I am not sure what mistake I am making.
>
> > <?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>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to