[android-developers] Re: How to set a dynamic View size

2011-01-24 Thread Brill Pappin
I'm afraid I don't understand the weight values. one of the points of a fixed height is that I'm drawing on the canvas for the view and it has to be as exact as i can get it so that i don't get empty space. There is another view below it that will align to its bottom and should stretch to fill

[android-developers] Re: How to set a dynamic View size

2011-01-24 Thread Streets Of Boston
Kostya's answer is probably what you need if you need an almost pixel- perfect division of 3:1. Implement the onMeasure method in your custom view. On Jan 24, 9:22 am, Brill Pappin br...@pappin.ca wrote: I'm afraid I don't understand the weight values. one of the points of a fixed height is

[android-developers] Re: How to set a dynamic View size

2011-01-24 Thread Brill Pappin
Yah, thats what I did. I still had to monkey around with the relative layout for another hour before I got it the way I wanted :) A stray property was messing things up. - Brill On Jan 24, 9:42 am, Streets Of Boston flyingdutc...@gmail.com wrote: Kostya's answer is probably what you need if you