An instance of ImageView in a RelativeLayout with height set to fill_parent will stretch as the RelativeLayout does. E.g. if an EditText in the same layout is 10 lines tall, the image will stretch to 10 lines tall.
How can this behavior be replicated in a FrameLayout? The image’s height set to fill_parent seems to behave the same as wrap_content, regardless of the height of the other items in the FrameLayout.
I’d prefer to handle this purely in the XML.
I found a (possibly hack) workaround- wrapping the FrameLayout in a LinearLayout let me set the FrameLayout to fill_parent and so its children could stretch accordingly. So:
And the ImageView will stretch to the height of the EditText.