You can use a LinearLayout and the android:layout_weight attribute on
the Spinner. There are many examples of this around.

On Mon, Dec 29, 2008 at 2:11 AM, Danny Brain <[email protected]> wrote:
>
> Hey,
>
> Sorry for the gibberish subject. I'm looking for a layout that will
> support 2 views lined up next to one another.
> In my case I want something like:
> <-- Spinner -----------><-- Button -->
> Where the spinner is a list of existing values and the button is a
> "+" (add new value).
> I want the spinner to take as much of the screen width as possible
> without overlapping the button.
>
> Is this possible using XML layouts or will I need to do some fanciness
> in code? Any ideas?
> Thanks in advance :)
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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