How can I avoid "IllegalStateException: Scrollview can host only one direct child"?
Solution 1:
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.
Solution 2:
You can avoid IllegalStateException :Scollview can host only one direct child
by only hosting one direct child in your scrollview