How can I avoid “IllegalStateException: Scrollview can host only one direct child”?

You have added more than one controls as children of a ScrollView. If you want to do this add a LinearLayout as a direct child and put the other controls in it.

Leave a Comment