Mark, Thanks.  I see what you mean.  I got it to work by using xml
attributes like:

android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"

I'm assuming that's what you meant by "anchoring,"  but is there a more
correct way to do this?

On Mon, Feb 23, 2009 at 5:20 AM, Mark Murphy <[email protected]>wrote:

>
> Doughy wrote:
> > I would like to create an application that has 5 images, 4 of which
> > are small, and one is larger.  The 4 small images I would like to
> > place in the corners of the screen, and the big image I want to be
> > right in the center.  Like this:
> http://www.eng.utah.edu/~jwilson/files/layout.png<http://www.eng.utah.edu/%7Ejwilson/files/layout.png>
> >
> > What is the best type of layout to accomplish this?  I would like the
> > layout to work on various devices, so some kind of fluid method is
> > preferred over absolute positioning.  Seems like a table view would
> > work if the images were the same size, but they're not.  Any ideas?
>
> This is tailor-made for a RelativeLayout. Anchor the four smaller images
> to their respective corners, and set the larger image to be centered.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android Training in Sweden -- http://www.sotrium.com/training.php
>
> >
>

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