I’m looking to lay out a view similar to how TableLayout works, which can automatically shrink and stretch columns, except I want a row to be stretched and shrunk.
Basically I want to have a fixed-height button (dp) button at the top of the screen, a fixed-height button (dp) at the bottom of the screen, and an ImageView in the middle. I want the ImageView to be stretched or shrunk as needed to accomodate the two fixed-height buttons.
Using a TableLayout with orientation=vertical doesn’t seem to do the trick.
Any ideas?
you can use relative layout to do waht you need. Attach the two buttons to the top and buttom respectively. Then for the image you can align its top to the buttom of top button and its buttom to top of buttom button.