How about making your list view the first child of a vertical linear
layout and making the button the second child.
Make sure to set the weight of the list view to 1 and the weight of
the button to 0 so the list view expands to use up all the extra
available space.
--
Ali

On Aug 31, 8:08 pm, ecforu <[email protected]> wrote:
> I was wondering, is there a way to display a menu all the time instead of
> when the menu button is pressed.
>
> The reason being is a I have an activity that has a list view, but I want to
> display a "New" button so that the user can add to the list.  I don't know
> where to put the button, and I would rather not hide the new button in the
> normal menu.  I was hoping I could display something like the menu all the
> time.
>
> The other option is to add a new item selection to the list.  However I am
> using a simple cursor adapter to fill the list and I'm not sure how to add
> to this list after its populated from the cursor.
>
> 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to