Android XML error after updating eclipse -
after updating eclipse maintain getting error saying "attribute name "android:tools" associated element type "relativelayout" must followed ' = ' character.
it says on line 9 there isn't android:tool there. i've tried cleaning , restarting eclipse , still no solution. never changed part of file, , funny thing other activities same , don't have errors. help appreciated thanks.
edit... fixed problem deleting file , creating new one. file must have been corrupt or something. input everyone, sorry run confusion.
<?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/backtext" tools:context=".brakes" android:screenorientation="portrait" > <textview android:id="@+id/textview2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:text="@string/brakes1" android:textcolor="@color/textviews" android:textsize="15sp" /> <textview android:id="@+id/textview3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_below="@+id/textview2" android:text="@string/brakes2" android:textcolor="@color/textviews" android:textsize="15sp" /> <textview android:id="@+id/textview4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_below="@+id/textview3" android:text="@string/brakes3" android:textcolor="@color/textviews" android:textsize="15sp"/> <textview android:id="@+id/textview5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_below="@+id/textview4" android:text="@string/brakes4" android:textcolor="@color/textviews" android:textsize="15sp"/> </relativelayout> </scrollview>
try moving line:
xmlns:tools="http://schemas.android.com/tools"
to scrollview
instead of relativelayout
now.
it looks relativelayout
used root view, , added scrollview @ point later.
android xml
No comments:
Post a Comment