How can I specify a dynamic height for an ImageView?
- by kefs
I have an ImageView at the top of my display that looks like the following:
+----------------------------------------------+
¦ ImageView +--------------+ ¦
¦ ¦ ¦ ¦
¦ ¦ Actual image ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ +--------------+ ¦
+----------------------------------------------+
Below this, I have a series of Buttons and TextViews..
I would like the ImageView's height to dynamically increase depending on the max height of the screen. I'm aligning the layout containing the buttons along the bottom of edge of the screen, and I would like the rest of the screen taken up by the above ImageView.
Also, since the ImageView contains a centered image, I would also like to set min height, and a scrollbar if the screen is too small to display the imageview and the buttons below.
Thanks!
Is this possible?