Re: [android-developers] i dont understand this error
emada.adame wrote:
> i have a app that searches a site then displays the results in a
> listview. then you can click on one of the items in the list and it
> should pop up a dialog displaying info about the item selected but i
> get "IllegalStateException: ScrollView can host only one direct child"
> i have made a few other apps with the same type functions and never
> run across this, any ideas?
You are adding a second child to a ScrollView. Don't do that.
If the ScrollView in question is in your activity, you should not need
it -- ListView already knows how to scroll.
Otherwise, look for calls to addView() in your code.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Consulting: http://commonsware.com/consulting
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home