Guys-
You have given me a lot to chew on. Thanks. I will give your
suggestions a go, and do some reading!
Thanks again,
sj
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Mark- thanks for your reply!
I am new to 2d graphics and custom components, so let me try to see if
I am reading you right:
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
You should get the size available passed to you in onMeasure, then
take all of it when you setMeasuredDimension.
Read more from this reference and others:
http://developer.android.com/reference/android/view/View.html
Mark the other components as wrap_content and yours as
fill_parent. Then you
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
Here is one thing that will save you time if you do use a table
layout.
TableLayout will create three columns for the button, button, image on
row 1.
So on your custom control, place:
android:layout_span=3
Check the relevant rules for RelativeLayout.
--
You received this message because you
5 matches
Mail list logo