I am using ScrollView
in my android Layout but it shows IllegalStateException "Scollview can host only one direct child"
. How can I avoid this exception? Please help.
Thank You.
I am using ScrollView
in my android Layout but it shows IllegalStateException "Scollview can host only one direct child"
. How can I avoid this exception? Please help.
Thank You.
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.
You can avoid IllegalStateException :Scollview can host only one direct child
by only hosting one direct child in your scrollview