I would try including the Button in the same LinearLayout as the
ListView. That worked for me.

On Sep 22, 3:14 pm, elephantbug <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem to display the view (e.g. Button after theListView
> which I will bind and populate from a CursorAdapter).
>
> Here is the part of the XML file:
>
>         <!-- friend list populated from cursor -->
>         <LinearLayout
>                         android:id="@+id/other_contact_layout"
>                     android:layout_width="fill_parent"
>                     android:layout_height="wrap_content"
>                     android:orientation="vertical" >
>
>                         <ListViewandroid:id="@android:id/list"
>                                 android:focusable="true"
>                                 android:choiceMode="multipleChoice"
>                             android:layout_width="fill_parent"
>                             android:clickable="true"
>                         android:layout_height="wrap_content"/>
>                         <TextView android:id="@android:id/empty"
>                         android:layout_width="wrap_content"
>                         android:layout_height="wrap_content"
>                         android:text="@string/empty"/>
>
>             </LinearLayout>
>         </LinearLayout>
>
>         <LinearLayout
>                 android:id="@+id/add_friend_layout"
>             android:layout_width="fill_parent"
>             android:layout_height="50px"
>             android:layout_marginTop="1px"
>             android:orientation="vertical" >
>
>         <Button
>                 android:id="@+id/add_friend_button"
>                 android:layout_width="fill_parent"
>                 android:layout_height="wrap_content"
>                 android:gravity="center"
>                 android:text="bottom here" />
>         </LinearLayout>
>
> The list displays perfectly, however, the button at bottom never shows
> up.. If I put the button on top of the list, it works fine.
>
> Anyone know the reason?
>
> --elephantbug

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to