Error when using ScrollView in Android

If you have added a ScrollView to your layout in Android, you might get this error showing up in your IDE:

  • error: Error parsing XML: unbound prefix


The problem is likely that you have not provided the xmlns:android attribute. If you have placed your ScrollView around the default LinearLayout in the project, just move the xmlns:android attribute from the LinearLayout to the ScrollView that you added.

(The source for the error above came from Eclipse 3.6.0 when I hovered over the error icon to the left of the ScrollView tag in my main.XML file.)

Also thanks to Lars Vogel's tutorial for showing me where to place the ScrollView.

Comments

Adriana said…
thanks for share!
sem calcinha said…
Adoro me mostrar peladinha na web cam
games android said…
"Interesting place of duty and thanks for sharing. Some effects in now I have not thought about before.Thanks representing making such a cool place of duty which is especially fantastically fine written.will be present referring a lot of friends about this.:)
"i ponder this is good,strange & appreciating.....there is no hesitation in this that we are now in that kind of world where wer come transversely several and peculiar things :)

Popular posts from this blog

Tic Tac Toe - Using App Inventor Beta

Choosing the Right Mobile Development Framework

Compared: Xamarin vs Xcode - iOS App Size and Startup Speed