It can be done without sub-layouts.

Two views:
http://stackoverflow.com/a/13280255/1011746

Three views:
http://stackoverflow.com/a/13279846/1011746


On Tuesday, April 10, 2012 1:54:33 AM UTC-5, Zsolt Vasvari wrote:
>
> AFAIK, you cannot.  You will have to frame them using a sub-layout.
>
> On Monday, April 9, 2012 11:56:56 AM UTC+8, Put_tiMe wrote:
>>
>> In a relative layout, how do I center align two *child* elements.
>> The two elements could be of different widths.
>>  
>> They appear one below the other and are horizontally center aligned.
>>  
>>  
>>
>

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