Question about activity_quiz.xml


#1

Hi,
I’m new to Android programming and I’ve purchased your book. On page 126, it says to add the following line to activity_quiz.xml:

      android:id="@+id/true_button"

 but when I do, I get an error that says: "Multiple annotations found at this line:
                                                             -Element type "Button" must be followed by either attribute specifications, ">" or "/>".

 I've checked my code several times, and I believe it matches what is in the book. Any ideas what the error means?

Scott

<Button
    android:id="@+id/true_button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/true_button" />

<Button
    android:id="@+id/false_button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/false_button" />

#2

Can you paste the entire contents of your activity_quiz.xml file into a site like pastie.org? pastie.org/

That will make it easier to ensure that phpbb is not eating anything important.