Just as the error says
ScrollView can host only one direct child
Wrap the View
s inside of a LinearLayout
so the ScrollView
has only the LinearLayout
as a direct child.
From the Docs
A ScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects. A child that is often used is a LinearLayout in a vertical orientation, presenting a vertical array of top-level items that the user can scroll through.
// all the views currently in your ScrollView