tags:

views:

134

answers:

2

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.

+5  A: 

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.

kgiannakakis
+1  A: 

You can avoid IllegalStateException :Scollview can host only one direct child by only hosting one direct child in your scrollview

Falmarri