Solved using RelativeLayout properly (I *think*).

<Button android:id="@+id/add_location_button" android:text="+"
    android:layout_width="wrap_content" android:layout_height="wrap_content"
    android:layout_alignParentRight="true" />
<Spinner android:id="@+id/location_spinner"
    android:layout_width="wrap_content" android:layout_height="wrap_content"
    android:drawSelectorOnTop="true"
android:prompt="@string/select_location_prompt"
    android:layout_toLeftOf="@id/add_location_button"
    android:layout_alignParentLeft="true" />

Sorry for the silly post.

On Mon, Dec 29, 2008 at 9:11 PM, 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 :)

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