[android-developers] Re: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-23 Thread superjet
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

[android-developers] Re: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-22 Thread superjet
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

[android-developers] Re: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-22 Thread Nathan
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

Re: [android-developers] Re: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-22 Thread Mark Murphy
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

[android-developers] Re: Help Understanding Custom Components and Multiple Resolutions - Analogy to Lego!

2009-12-22 Thread Nathan
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