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


i have got above error in below code:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingbottom="@dimen/activity_vertical_margin"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin"     tools:context="com.example.android.justjava.mainactivity"     android:orientation="vertical">      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="quantity"         android:textsize="24sp"/>     <textview         android:="@+id/quantity_text_view"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="0"         android:paddingtop="16dp"         android:textsize="24sp"/>     <button         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="commander"         android:paddingtop="16dp"         android:textsize="24sp"/> </linearlayout> 

i'm unable figure out what's wrong. please me on this?

there no attribute name in first line of second textview.

<textview         android:="@+id/quantity_text_view"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="0"         android:paddingtop="16dp"         android:textsize="24sp"/> 

i guess need add id:

android:id="@+id/quantity_text_view" 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -