android - Unknown Error in XML -


hi have made xml file throwing error : incorrect line ending: found carriage return (\r) without corresponding newline (\n)

here xml file :

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical" >      <relativelayout         android:layout_width="fill_parent"         android:layout_height="wrap_content" >          <imageview              android:id="@+id/imageview1"             android:layout_width="fill_parent"             android:layout_height="wrap_content"             android:layout_alignparentleft="true"             android:layout_alignparenttop="true"             android:src="@drawable/help_new_session"              android:layout_above="@+id/buttonhidenewsessionhelp"              />             <button             android:id="@+id/buttonhidenewsessionhelp"             style="?android:attr/buttonstylesmall"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignparentbottom="true"             android:onclick="onbuttonclick"             android:text="hide" />      </relativelayout>  </linearlayout> 

the below process resolve issue.

  1. open layout file
  2. ctrl+shift+f
  3. save layout file , close it.
  4. delete .out files builder might have created(you can see .out files below original layout file).
  5. clean project.

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -