superjet wrote:
> You're saying, if I create a table layout with two rows and one
> column, and I populate the top row with say 2 buttons and an image, I
> can get Android to return the amount of space left over for the other
> row? 

I'm saying that if you create a TableLayout with two rows, and you put
two Buttons and one ImageView in the top row, and one SuperJetCoolWidget
in the bottom row, your SuperJetCoolWidget will be sized in accordance
to the rules you apply in the layout (and, partially, based on
SuperJetCoolWidget's preferred size). In this respect,
SuperJetCoolWidget is no different than any other widget.

Assuming, of course, that you implement SuperJetCoolWidget.

You are probably better served with a RelativeLayout in this case,
anyway. If you're not implementing a form, TableLayout is rarely the
best choice.

> PS, I have a Warescription, is there something I should review?

I do not get into 2D graphics (2010, maybe), but there is a chapter in
_The Busy Coder's Guide to *Advanced* Android Development_ on custom
views that shows using the composite or aggregate view pattern.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in US: 8-12 February 2010: http://bignerdranch.com

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

Reply via email to