Kushal Reshamdalal February 2016

what is this error for in my code in android studio? "error: Error parsing XML: not well-formed (invalid token)"

I'm trying to add spinner in my activity but i m getting this error so i am confused.

<TextView
    android:text="Select Field"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:id="@+id/field"
    />
<Spinner
    android:id="@+id/spinner"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_alignParentRight="true"
    android:layout_toRightOf="@+id/field" </Spinner>

Answers


IntelliJ Amiya February 2016

You are forgot to set > Tag

<Spinner
    android:id="@+id/spinner"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_alignParentRight="true"
    android:layout_toRightOf="@+id/field"  >

</Spinner>

Post Status

Asked in February 2016
Viewed 2,234 times
Voted 4
Answered 1 times

Search




Leave an answer