I have the following dilemma. Two elements, one on top of each other. The bottom has wrap_content
for height. I want the top element to fill the remaining space without the two elements overlapping (which happens if I use FrameLayout
for example).
The width is match_parent
for all elements.
Here's a mockup (some attributes truncated for clarity):
<LinearLayout android:layout_height="match_parent">
<CustomView android:layout_height="???????" />
<TextView android:layout_height="wrap_content">
</LinearLayout>