[android-developers] Re: Problem with TableLayout

2008-08-22 Thread Kavi



On Aug 22, 8:37 am, Kavi <[EMAIL PROTECTED]> wrote:
> How about telling the TableRows to evenly take the height from the
> Table layout. Is that possible?
> So, for example in my main.xml, the TableLayout is taking up the whole
> screen. And all the table rows height is equal to what they need for
> their content.
> Thus, their is some extra space left at the bottom of the screen. I
> want the rows to spread out so that the whole page is taken. Can that
> be done using a TableLayout?

Ok i found the answer to this one using layout_weight.
>
> About using a Linearlayout, i have used that but i need to test it
> with a TableLayout now. Also, would you have an idea in terns of the
> rendering time for both LinearLayout and TableLayout. Which one is
> faster and takes up less memory?

This one, i'll still like to know.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with TableLayout

2008-08-22 Thread Kavi

How about telling the TableRows to evenly take the height from the
Table layout. Is that possible?
So, for example in my main.xml, the TableLayout is taking up the whole
screen. And all the table rows height is equal to what they need for
their content.
Thus, their is some extra space left at the bottom of the screen. I
want the rows to spread out so that the whole page is taken. Can that
be done using a TableLayout?


About using a Linearlayout, i have used that but i need to test it
with a TableLayout now. Also, would you have an idea in terns of the
rendering time for both LinearLayout and TableLayout. Which one is
faster and takes up less memory?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with TableLayout

2008-08-21 Thread Romain Guy

> To me, it looks like it calculates the height needed for the
> TableLayout and then just adds the title above it which pushes the
> entire layout down and hence, some stuff gets hidden.
> Is this an issue and if yes, was it there in the old SDK?
> What would be a workaround?

Your content is simply too large for the screen. You should put your
TableLayout inside a ScrollView.

> 2) My second question is regarding a TableRow. By default, the
> layout_height for a table row and its children is set to WRAP_CONTENT.
> If i need the row's layout_height property to be set to FILL_PARENT,
> how can i do that?
> Is it possible? or is there a possible workaround?

You can't, because in this case you would see only one row at a time.
You should use a LinearLayout to do this.

-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---