On Sep 2, 1:53 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > Spencer Riddering wrote: > > Notice how only the lower half of "Left Center" is displayed. Also, > > notice that "Upper" is not displayed. > > > Can someone confirm that this is a bug or point out my mistake? > > I think the point behind RelativeLayout is for you to be placing widgets > relative to other widgets. You're not doing that here, other than your > two centering statements.
Except that I am: layout_alignParentLeft="true" and android:layout_centerInParent="true" > As it stands, your "Left Center" TextView > should be overlapping with your LinearLayout on the vertical axis (both > are centered), I'm not sure why this is relevant. > and I have no idea where "Left Center" is supposed to > appear on the horizontal axis, since you didn't anchor it to anything or > otherwise specify where it is supposed to appear horizontally. I did anchor it. Horizontally, "Left Center" is aligned on the parent's left side: layout_alignParentLeft="true" > > All that being said, I think merely replacing RelativeLayout with a > horizontal LinearLayout in your XML will get you the look you want, > assuming your TextView labels are accurate vis a vis what you're aiming for. > > If you really want to do this with a RelativeLayout, try specifying that > your vertical LinearLayout is toRightOf the "Left Center" TextView, and > that the "Left Center" TextView is alignParentLeft (so it is flush on > the left margin). > > Note that my comments are all by a Mark I Eyeball review of your code, > as I haven't tried compiling or running it. If this doesn't work, write > back with details. You seem to have missed the problem entirely. Please compile next time. --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

