Getting Unexpected text found warning after changing buttons


After changing the Prev and Next Buttons to ImageButtons, I’m getting the following warning: Unexpected text found in layout file: “”"

The app still compiles and works fine, but the warning is pretty annoying. I’ve deleted and retyped both ImageButtons, but the warning still appears at the last line of one of the ImageButton definitions in the XML file.


I ended up fixing this by deleting and retyping several lines.