I've to develop an Android application that needs to show data using a similar layout. I need two parts of screen:
- A layout with a fluid height that vary on resolution of device
- Second layout that show content in a fixed size
How to do this? I've used relativelayout and linearlayout but I haven't found a solution. Could you help me?
For a
LinearLayout
set top layout toandroid:layout_weight="1"
(and height to0dp
) and bottomlayout_height
to either a fixed value orandroid:layout_height="wrap_content"
More efficient solution using
LinearLayout