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:
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.
- 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