Hello.

I know my original post (at
http://groups.google.com/group/android-developers/browse_thread/thread/57129a72b400754c/cc6cb59adf79bd24?lnk=gst,
I could not find a way to perform a reply, maybe it's too old) is not
sexy, but I'm now facing that problem in many situations. Let me
please rephrase what I attempt to do, and what my problem is.

I have a RelativeLayout made of three widgets (named 1, 2 and 3 on the
illustrations below): one attached to its parent left border (labelled
1), one to its parent right border (labelled 2) and the third
(labelled 3) inserted between the 2 previous ones (its left border is
attached to the first widget right border, and its right border is
attached to the second widget left border). The third widget (the
middle/central one laballed "3") is far taller than the two others,
and I would like the first and second items (1 and 2) to be vertically
centered with the middle widget.

I have resorted to the "android:layout_centerVertical" attribute for
both the first and second widget, but I do not get the expected
result. See at the bottom the various layouts I'm mentionning. Could
someone please help me, and tell me whether what I intend to do is
feasible, and how? Thank you for your time.

Layout with no "android:layout_centerVertical" specified:
-------
|1|3|2|
--|3|--
  |3|
  ---

Layout with "android:layout_centerVertical" set to "true":


  ---
  |3|
  |3|
  |3|
-------
|1| |2|
--- ---


What I'd like:
  ---
--|3|--
|1|3|2|
--|3|--
  ---

Regards,
Édouard, desperate
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to