Thanks for all the responses..
Using vertical works fine..

On Apr 1, 12:08 pm, Glen Humphrey <[email protected]> wrote:
> Try this.
>
> android:orientation="vertical"
>
> On Apr 1, 8:57 am, Mike Wolfson <[email protected]> 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<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to