Hi Édouard, I think what you are trying to accomplish is impossible to obtain using RelativeLayout only.
We have the same problem in OI Shopping list. We had a nice layout that worked using nested LinearLayouts, but after switching to RelativeLayout (because of supposedly improved performance) we could not manage to obtain that again, so we'll probably switch back to nested LinearLayouts in the next version. Here's the outline to the solution to what you have posted here: http://imagebin.ca/view/WAe_koO.html <LinearLayout horizontal> <TextView layout_align="center" text="12:21" wrap_content,wrap_content /> <LinearLayout vertical layout_weight="1"> <TextView wrap_content,wrap_content/> <TextView wrap_content,wrap_content/> </LinearLayout> <Image layout_align="center" wrap_content,wrap_content/> </LinearLayout> It is less performant than the RelativeLayout, but you could try out both and weigh speed against looks. Peli On Jul 16, 10:16 am, elDoudou <[email protected]> wrote: > Thank you for taking so much care, but unfortunately, the problem is > still not solved with your advice of setting the widgets 1 and 3 > height to "fill_parent" (they were actually formerly set to > "wrap_content"). I'm kind of thinking that I should open up a > challenge for the person who solves this problem ;) > > I must already mention that the RelativeLayout I'm working on is > actually a row in a ListView. Here is a paste bin with the Eclipse > Android project, which should enable anyone to play around with that > problem:http://filebin.ca/zyvuwf/TestRelativeLayout.zip. This is a > zip which also contains a "TestRelativeLayout" folder where three > screenshot images are available: > > - "wrap_content.png" (also available athttp://imagebin.ca/view/h4D3vm.html): > what I get before following Mark's advice. This is not what I expect, > because the widget 3 (the one in the middle) top border should be > bound to the parent widget top border ; > - "fill_parent.png" (also available athttp://imagebin.ca/view/TL_4Mpep.html): > what I get before once Mark's advice applied. This is not what I > expect, because the widget occupy too much vertical space ; > - "expected.png" (also available athttp://imagebin.ca/view/DJcNguVD.html): > what I'd love to get! > > Android layout experts are very welcome! Thank you for your time and > supports. > Regards, > Édouard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

