Invalid activity_quiz.xml


#1

Hi,

I am quite new to Android programming, following the instructions on page 11, I entered the modifications to activity_quiz.xml and get the following error on all instances where the keyword android appears:

Attribute is missing the Android namespace prefix

This is my activity_quiz.xml file:

<TextView
    android:layout_width="wrap_content"
    android:layour_height="wrap_content"
    android:padding="24dp"
    android:text="@string/question_text"/>

<LinearLayout 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal" >
 
     <Button
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="@string/true_button" />
         
     <Button
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="@string/false_button" />

</Linearlayout>

What could be the problem?

Thanks


#2

You’ve got a typo on the first line. Where you have “xlmns” it should be “xmlns”.

Thanks,
Brad