How can I specify a dynamic height for an ImageView?
Posted
by kefs
on Stack Overflow
See other posts from Stack Overflow
or by kefs
Published on 2010-05-25T19:16:58Z
Indexed on
2010/05/25
19:41 UTC
Read the original article
Hit count: 209
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?
© Stack Overflow or respective owner