One way to avoid this warning is to flatten your layout by replacing the outer LinearLayout
with a RelativeLayout.
The other thing that pops out to me is that the first child LinearLayout
is completely unnecessary. It has only one child (another LinearLayout
), so it isn't really doing anything.
With a RelativeLayout
, you can simplify this layout to: