android - Error:(4) Error parsing XML: not well-formed (invalid token) -


whenever run app error. have tried solutions online of them failed.

any help?

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent" android:layout_height="match_parent">     <textview android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="dishname"         android:id="@+id/item_name"         android:textsize="24dp"         android:textcolor="#396fd1"         android:layout_alignparenttop="true"         android:layout_alignstart="@+id/item_type" />     <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="price"         android:id="@+id/item_price"         android:textsize="16dp"         android:layout_below="@+id/item_name"         android:layout_toendof="@+id/item_name"         android:layout_marginstart="32dp" />     <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="type"         android:id="@+id/item_type"         android:textsize="12dp"         android:layout_below="@+id/item_name"         android:layout_alignstart="@+id/item_nofingredients" />     <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="#"         android:id="@+id/item_nofingredients"         android:textsize="12dp"         android:layout_below="@+id/item_type"         android:layout_alignparentstart="true"         android:layout_marginstart="15dp" />     <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="ingredients"         android:id="@+id/textview5"         android:textsize="12dp"         android:layout_below="@+id/item_type"         android:layout_toendof="@+id/item_type" />     <imagebutton         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/deletebutton"         android:layout_alignbottom="@+id/item_price"         android:layout_alignparentend="true"         android:layout_marginend="19dp"         android:background="@android:color/transparent"         android:src="@android:drawable/ic_menu_delete"/> </relativelayout> 

you have 11 invisible vertical tab characters in xml, first 1 @ end of row #4. vertical tabs not valid whitespace characters in xml.

android studio not display vertical tabs. can use editor sublime text see them.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -