Check out droid draw. it helps me a lot with this stuff:

http://droiddraw.org/

I think I would remove the LinearLayout around the ListView components
to start with. Otherwise it looks ok to me. What are you seeing that
is wrong?

You might give RelativeLayout a look too.

On Apr 13, 4:21 am, "Fred Janon" <[EMAIL PROTECTED]> wrote:
> I am trying to compose a view with multiple views inside. A top view with
> some text an a button and another one below with a list of items. It kinda
> works when I don't surround the interanl views with LinearLayout, but the
> list items don't show if I have the internal LinearLayouts like below. Does
> the list need always to be at the top level? I am using th eNotepad exmaple
> and adding view in the notes_list.xml file, but it's trial and error for
> days...
>
> <?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">
>
> <LinearLayout android:id="@+id/TopLinearLayout"
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content">
>
>     <TextView android:id="@+id/tagslabel"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:layout_weight="1"
>         android:text="Items"
>         android:textSize="20sp"/>
>     <Button android:id="@+id/reset"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:text="Reset"
>         android:textSize="20sp"/>
>
> </LinearLayout>
>
> <LinearLayout android:id="@+id/ListLinearLayout"
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content">
>
>     <ListView android:id="@+id/android:list"
>           android:layout_width="fill_parent"
>             android:layout_height="wrap_content"/>
>
>       <TextView android:id="@+id/android:empty"
>           android:layout_width="fill_parent"
>             android:layout_height="wrap_content"
>             android:text="No Notes!"/>
> </LinearLayout>
>
> </LinearLayout>
>
> Any idea?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to