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>
<CustomView
android:layout_height="0dp"
android:layout_weight="1"
.../>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With