[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-15 Thread Mark Murphy
elDoudou wrote: > 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

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-15 Thread elDoudou
Thank you Mark for taking the time. Yes, my ASCII "art" does not fit well with the browser non-fixed-space font. - Just to let you know that setting android:layout_centerVertical="true" on the 3 widget does not solve the problem (I forgot to mention that I had already tried...) - I cannot use a

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-15 Thread Mark Murphy
elDoudou wrote: > Thank you Mark for taking the time. Yes, my ASCII "art" does not fit > well with the browser non-fixed-space font. > > - Just to let you know that setting > android:layout_centerVertical="true" on the 3 widget does not solve > the problem (I forgot to mention that I had already

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-16 Thread elDoudou
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 p

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-20 Thread elDoudou
Hello there. Sorry, I won't give up this time, because this naughty default behavior really prevents me from designing a nice and clean layout. To me, it's kind of bug on the Android layout layer. I know that this support request is far from sexy, but as you know, the details make all the differe

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-20 Thread Romain Guy
Write a custom layout? I'm pretty sure no layout is impossible :) On Mon, Jul 20, 2009 at 1:36 PM, elDoudou wrote: > > Hello there. > > Sorry, I won't give up this time, because this naughty default > behavior really prevents me from designing a nice and clean layout. To > me, it's kind of bug on

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-21 Thread elDoudou
Thank you Guy for giving some hint. - Would you confirm that what I intend to perform is impossible with the built-in layouts? - If yes, what is the exact mean of the RelativeLayout parameter 'android:layout_centerVertical="true"'? - If only possible through the building of a custom "ViewGroup

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-21 Thread Romain Guy
Hi, >  - Would you confirm that what I intend to perform is impossible with > the built-in layouts? What are you trying to do? >  - If yes, what is the exact mean of the RelativeLayout parameter > 'android:layout_centerVertical="true"'? It centers the child vertically within the bounds of the

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-22 Thread Peli
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) w

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-24 Thread elDoudou
Very shortly, because I do not have much time. Thanks so much Peli, you saved my life ;) I did not think of the "layout_weight" option... When I have time, I should post the solution, so that everyone enjoys. Cheers, Édouard --~--~-~--~~~---~--~~ You received this m