Have you tried an Relative Layout yet?

I think you can specify the left and right Item in the Xml for that?


Regards,,

Christian Polzer

[email protected]







On 24.06.2009, at 23:51, Carl wrote:

>
> thanks. I tried that but unfortunately I then get an
> arithmeticException.
> It also seems pretty complicated to add Views to it.
>
> On Jun 24, 3:36 pm, schwiz <[email protected]> wrote:
>> try using 1 linear layout with a TableLayout tag inside then TableRow
>> inside of that.  Make sure  your TableLayout has the attribute
>> android:stretchColumns="*"
>> this should do it!
>>
>> On Jun 23, 10:16 pm, ayush <[email protected]> wrote:
>>
>>
>>
>>> its hard to figure out without looking at your XML content. my guess
>>> is that you are using the "fill_parent" value for the layout_width  
>>> of
>>> your linear layouts and the ImageView. replace this by  
>>> "wrap_content"
>>> or alternatively specify the exact width in pixels that you want  
>>> each
>>> of the 3 linear layouts to be. you will also have to use the same
>>> value on the ImageView.
>>
>>> On Jun 23, 5:13 am, Carl <[email protected]> wrote:
>>
>>>> Why has it got to be soooo difficult?  For a week now I’ve been
>>>> reading and playing around with code and have still not found the
>>>> answer!!!!
>>
>>>> I want a simple 3 column layout, with images going from bottom to  
>>>> top
>>>> in each.
>>>> Whenever I put 3 LinearLayouts next to each other in the  
>>>> Activity, the
>>>> first one takes up all the space.
>>>> That is if I add an ImageView to it in the XML. If I don’t then all
>>>> none of the Layouts appear.
>>
>>>> Very frustrated and about to quit Android altogether. Please  
>>>> help!- Hide quoted text -
>>
>> - Show quoted text -
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to