How can I size a view based on the size of its parent layout. For example I have a RelativeLayout that fills the full screen, and I want a child view, say an ImageView, to take up the whole height, and 1/2 the width?
I've tried overriding all on onMeasure, onLayout, onSizeChanged, etc and I couldn't get it to work....