What I’ve done
Hello Guys, I’m trying to create a custom ListView layout. I’ve already done this, but I get some XML Markup Errors:
Multiple annotations found at this line:
– The markup in the document following the root element must be well-
formed.
– error: Error parsing XML: junk after document element
Question
Like this on how must my custom ListView layout look like that I don’t get those errors? Down here you find the Code:
<?xml version="1.0" encoding="utf-8" ?>
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="2"
android:drawSelectorOnTop="false">
</ListView>
<TextView
android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="No filter set"
</TextView>
Thx in advance for your anwsers!
Best Regards
safari
First check all the comments that i have included in the below XML layout so that you will get better idea what you are missing and what you should include.
Your Layout should be like: