How to Solve Issue: ScrollView can host only one direct child

There are some differences when Android uses Scrollview layout

Scrollview can host only one direct child.

 

The main reason is that there can only be one child element in the Scrollview, that is, the

You can’t juxtapose two child elements, so you need to put all child elements together

Elements inside a LinearLayout or Relative layout and other layout methods

Similar Posts: